quick javascript help

by 4 replies
5
I have a field called field@code1 in a form in a XSL page.

i want to use java script to do validation.

the javascript errors if there is a @ in it.

1. is there any way of putitng an @ in javascript
2. is there any other way i can referance the field.

thanks
#programming #javascript #quick
  • Javascript cannot have variables with "@" in the name. You will need to change your script so that it feeds the javascript a properly formed variable name.
  • Pming you. Pls check your PM
  • Did you try to use "\@" to escape that?
  • can you give the form field and id, and then call it with getelementbyid?

Next Topics on Trending Feed