How to change text color in textbox on click event?

I am doing some validation in DHTMLx touch form with textboxes. I want to change text color in textbox onchange or onclick event. Need help.
How to change text color in textbox on click event? Its urgent.

You can set validation rule for the form:

dhtmlxTouch_v12_120913/samples/02_form/07_validation.html

and call validate() method when it is needed.