I can't find this anywhere, so I hope it can be done:
Here's what I can do so far:
1. Certain fields have a class 'textfield' while others are
'textfieldreq'.
2. OnSubmit checks all elements and makes sure that those with 'req'
have some value
3. It then sets the border on empty required fields to red
Now what I want to do is:
4. alter the onkeypress for the field
5. to restore the original class when someone enters something.
Can this be done?
Cheers!
Rick
Here's what I can do so far:
1. Certain fields have a class 'textfield' while others are
'textfieldreq'.
2. OnSubmit checks all elements and makes sure that those with 'req'
have some value
3. It then sets the border on empty required fields to red
Now what I want to do is:
4. alter the onkeypress for the field
5. to restore the original class when someone enters something.
Can this be done?
Cheers!
Rick
Comment