...

View Full Version : how to access field names with a period in name



mandar.mhatre
08-31-2007, 05:10 PM
Hi,
I am having field names in HTML with a period in them for e.g.
<INPUT TYPE='hidden' NAME='cars.toyota.camry' VALUE='22K'>
I need to know how to access this field name in Javascript.

thanks
Mandar

sage45
08-31-2007, 06:26 PM
Why are you using periods?

-saige-

liorean
08-31-2007, 11:25 PM
document.forms['formname'].elements['cars.toyota.camry'] should work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum