Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if required

const elem = document.getElementById('input');
if(elem.hasAttribute('required')){
	console.log(true)
}
 
PREVIOUS NEXT
Tagged: #javascript #check #required
ADD COMMENT
Topic
Name
3+9 =