Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if input is required jquery

$('form#register').find('input').each(function(){
    if(!$(this).prop('required')){
        console.log("NR");
    } else {
        console.log("IR");
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #input #required #jquery
ADD COMMENT
Topic
Name
2+8 =