jQuery: select elements having a specific attribute (not hasAttr)
April 29, 2014 10:58:07 Last update: April 29, 2014 10:58:07
In selector, select all inputs with the "
Determine if the current element is required:
required
" attribute:
$('input[required]')
Determine if the current element is required:
$(this).is('[required]')