Data Selector 1.1 Comparison Operators

:data(name)

Filter will just check to see if there is data stored with the name key

:data(name=value)

Checks to see that data stored with the name key matches the value passed

:data(name!=value)

Checks to see that data stored with the name key does not match the value passed

:data(name^=value)

Checks to see that data stored with the name key starts with the value passed

:data(name$=value)

Checks to see that data stored with the name key ends with the value passed

:data(name*=value)

Checks to see that data stored with the name key contains the value passed

:data(name>=value)

Checks to see that data stored with the name key is greater than the value passed

:data(name<=value)

Checks to see that data stored with the name key is less than the value passed

:data(name>==value)

Checks to see that data stored with the name key is greater than or equal to the value passed

:data(name<==value)

Checks to see that data stored with the name key is less than or equal to the value passed

:data(name===value)

Checks to see that data stored with the name key is a boolean value equal to the value passed('true' or 'false')

:data(name~=value)

Runs a regular expression test on the data stored with the name key against the value passed

:data(name[special]=value)

Passes the comparison operation to the special function stored using the $.dataSelector() method

Extra:

jQuery.dataSelector(name, fn)

To create your own comparison method, add your function to the list by declaring it in jQuery.dataSelector() like so:

$.dataSelector('typeof', function(data, value){
	return typeof data === value;
});

Now you can use selector's like :data(name[typeof]=boolean) to filter through elements that have stored data with the name key whose value type is boolean.