I don't use tape but certainly a ty-rap or a piece of tie wire should qualify. Sometimes when you have the box in the middle of a 24" bay you are just beyond 12". Nothing wrong with fastening to the bar.

-Hal