How to use dijit/Textarea validation (Dojo 1.9)?
问题 I have textarea which is required field. I've found post suggesting that Dojo doesn't have validation for Textarea, but in Dojo 1.9, there's an argument 'required'. I've done the following: new Textarea({required:true, value:""}, query('[name=description]')[0]) but the effect isn't what I've expected. The texarea has red border always, even if the field wasn't focused (as opposite to, for example, ValidationTextBox). But when I call: form.validate() the validation is passed even if the