set the class of a form item

Hi ,
how can I dynamically set the class of a form item ?

I want set the class for item “form_input_usr” to “readm”.

Thank you

you can use something like

var input = myForm.getInput("form_input_dateemail"); input.parentNode.className = "a";

snippet.dhtmlx.com/e64dcd0cb

thanks a lot

This Works fine but
if I use position :“absolute” in the form , I lose the position of input field

you have any suggestions ?

snippet.dhtmlx.com/b9b714f3e

Change the style setting line like next

input.parentNode.className = "dhxform_control a";

snippet.dhtmlx.com/972e70c6b

excellent !
Great Stanislav !

Again thanks a lot