jQuery selector: has one class but not another 

Joined:
02/21/2009
Posts:
172

February 01, 2014 10:19:03    Last update: February 01, 2014 10:19:03
This example selects a previous element that has class has-error but is not form-group:
$('#example').prev('.has-error:not(.form-group)')
Share |
| Comment  | Tags