This project is read-only.

How to validate (require) TEXTAREA ?

Nov 9, 2012 at 2:40 PM

I tried this:

<textarea name=​"my_txt" id=​"my_txt" cols=​"100" rows=​"5" validate="group" require="hep!">​</textarea>​

and this other method:

<div validate="group" require="hep!">
<textarea name=​"my_txt" id=​"my_txt" cols=​"100" rows=​"5">​</textarea>​

but it doesn't works… any idea ? 

Nov 15, 2012 at 11:25 PM
Edited Nov 15, 2012 at 11:28 PM

What you have looks correct, are you calling the validate method somewhere to trigger the validation?


<textarea name="my_txt" id="my_txt" cols="100" rows="5" validate="group" require="hep!"></textarea>
<input type="submit" value="Submit" onclick="return validate('group');">
Nov 28, 2012 at 7:32 AM

Thx for answer. It works now without any change... so strange  :-/