You may remove elements from the set of matched elements by using .not() method.
For example you want to remove all element with .alert class excluding those that have .alert-limited class.
You may do this in a following way:
$frm.find('.alert').not('.alert-limited').remove();
No comments:
Post a Comment