I'm currently setting up a cart system for a graphics company, and needed to be able to have customers specify the height/width of the product they want. As the range for sizes is limitless, setting it up via attributes doesn't seem to be a valid option.

I opted instead to build a javascript form into the product description, and pass values it generates to a Height option, Width option, and the total number of square inches to order to the quantity box.

I set up the relay to the quantity box easily, but I'm having difficulty being able to pass info to either Height or Width.

The problem is that these options have names like id[txt_14], and javascript refuses to believe square brackets aren't array declares.

Anyone have an idea as to workarounds?