"required" property use in tag is work correctly at chrome and firefox, but not in IE8 browser
in gsp file code:
<b> Name: </b><g:textField name="name" id="textfield1" value="${name}" required="true" maxlength="30" type="hidden"></g:textField>
how can I let the require tag work success in IE8 and chrome or other browsers?
The required
attribute of a form element is HTML5 which is not supported by older browsers such as IE8. This is not a limitation of Grails it's a limitation of the older browser.
You can read more about this attribute on w3schools. There you will also find the following compliance note.
Note: The required attribute of the tag is not supported in Internet Explorer 9 and earlier versions, or in Safari.