Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add required attribute javascript

// if you want the element to be required at submission of form
element.required = true;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #required #attribute #javascript
ADD COMMENT
Topic
Name
2+8 =