:attr

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 15:27:21

软件介绍

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();

本文地址:https://codercto.com/soft/d/23082.html

WebWork in Action

WebWork in Action

Jason Carreira、Patrick Lightbody / Manning / 01 September, 2005 / $44.95

WebWork helps developers build well-designed applications quickly by creating re-usable, modular, web-based applications. "WebWork in Action" is the first book to focus entirely on WebWork. Like a tru......一起来看看 《WebWork in Action》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具