jQuery Tutorial Tutorials - jQuery [name!="value"] selector

jQuery [name!="value"] selector

When use the jQuery Attribute Not Equal Selector [name!="value"],
These elements would be selected:

  1. don't have the specific attribute
  2. do have the specific attribute, but not with the given value.It is case sensitive.

jQuery [name!="value"] selector Syntax

$('[attribute!="value"]')

jQuery [name!="value"] selector Examples

Following is a simple example which makes use of jQuery Attribute not equal Selector.It would find all list item elements that don't have a title or don't have a title with value script,then hightlight them.

Try now

Date:2019-08-18 00:50:26 From:www.Lautturi.com author:Lautturi