js question
- Started
- Last post
- 4 Responses
- bakalek
Hi, i have a form with:
i need to send ithe value with onClick js function on submit:
onClick="toDB('state', this.form.f:1700196605.value);Of course it gives me an error because of the name: f:1700196605
any way to substitute : (colon) character in the onClick call ? i cant touch the form names.
If not, than maybe there is a way to post value by input ID ?its killing me here ... .
thanks!
- myobie0
try this.form['big crappy name'].value
or with prototype $F('big crappy name').value
i am pretty sure the colon in invalid
- bakalek0
thank you!
this: this.form.['f:1700196611'].value , generates the same exact error: "Missing name after . operator.
I'm not sure how i can put the prototype in ...
- maximillion_0
you have an element named f: XXXX? or that's its value?
- bakalek0
yeah the name if the input filed is : f:123456
but i think i fixed it:
this.form['f:1700196605'].value
this works ! i used to put a dot after form and it wasnt working.
Thank you all!