jQuery: select elements having a specific attribute (not hasAttr) 

Joined:
02/21/2009
Posts:
172

April 29, 2014 10:58:07    Last update: April 29, 2014 10:58:07
In selector, select all inputs with the "required" attribute:
$('input[required]')


Determine if the current element is required:
$(this).is('[required]')
Share |
| Comment  | Tags