...

View Full Version : is it valid to use [ or ] as identifier ?



kaixa
06-26-2006, 09:03 AM
hello.

my code is
<FORM name="four">
<INPUT type="text" name="in[some]">
</FORM>

why this is not working ?
document.four.in[some].value

any workaround for this ?

thanx :)

_Aerospace_Eng_
06-26-2006, 09:10 AM
A name usually can't have any spaces, begin with an underscore or have brackets like that. I do believe this is valid for the type="file" input. the bracket part that is.

vwphillips
06-26-2006, 09:20 AM
[ or ] are NOT valid if vailidating against name

there are a number of ways round this

see Form Compendium on the link below



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum