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

Christian Heilmann lists at onlinetools.org
Thu Dec 2 13:45:43 CST 2004


Joel D Canfield wrote:

>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
>  
>
How about the HTML standards?
http://www.w3.org/TR/REC-html40/types.html#h-6.2
*ID* and *NAME* tokens must begin with a letter ([A-Za-z]) and may be 
followed by any number of letters, digits ([0-9]), hyphens ("-"), 
underscores ("_"), colons (":"), and periods (".").




More information about the thelist mailing list