:attr

程序名称::attr

授权协议: 未知

操作系统: 未知

开发语言:

:attr 介绍

This very small plugin to jQuery adds the ‘:attr’ selector to the custom
selector list.
It allows specifying more advanced options on attributes than the usual
[@attribute] selector.

Example of use:

$('p:attr( @id>2 && @id<4 )').hide(); would hide every paragraphs with 2<id<4...

You can compare strings with the following Syntax:

$('p:attr( "@id">"B" )'); would select every paragraphs where id>B in alphabetical order.

The expression placed in parameter will be evaluated with the attributes
values and you can put any boolean-evaluated expression inside the parenthesis
like the following

$('p:attr((@id==1) || (@id>2 && @id<4))').hide();

:attr 官网

http://plugins.jquery.com/project/AttributeSelector

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...