[thelist] javascript and form fields with numeric ID/name

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Thu Dec 2 13:06:42 CST 2004


Hi Joel,

   Standards dictate that you can't being id/name attributes with an integer.  You could always append an arbitrary character to the beginning and then strip it off before processing on the back end -- just a thought.  As for googling, I'd probably skip it and go straight to the W3C site for information on a specific property like id.

Cheers,

Peter

 From: "Joel D Canfield" joel at spinhead.com

Does javascript choke on a field id/name which begins with a numeric
character? (like 010010CompanyName)

If so, is there an workaround? Really wanted to be able to sort/group
using the field id on the back end

Finally, what on earth would you google up to find the answer to this
seemingly basic question? I've spent half an hour in a fruitless attempt
to answer this for myself.

Arrg.

Thanks ever so much.

joel


More information about the thelist mailing list