How to Limit the Number of Rows in a Form Input

Hi,

I want to be able to Limit the Number of Rows in a Form Input, because when i set rows:“2”,
i can still add more rows

Regards.

Martin Ndegwa

Hi
You can try the next CSS:

.dhxform_obj_dhx_skyblue .dhxform_textarea { resize: none; }

Thanx for the reply but it aint working

It must work
Bout you can try the next approach:

myFormStruct = [ {type: "input", label: "Details", name: "inp3", rows:3} ]; myForm = new dhtmlXForm("myForm1", myFormStruct); inp = myForm.getInput("inp3"); inp.style.resize = "none";