jQuery Values

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-12 11:43:45

软件介绍

Makes it trivial to get/set values from any descendants of a DOM element(s), not just input and select elements.  Simply add "name" attribute(s) (as you do for form elements) to the elements whose values you wish to retrieve or set and call values() on a parent selection to retrieve those keys/values in a handy little hash object.

To get all values:
var values = $('.parent').values();
To set values:
$('.parent').values({ foo: 'bar', answer: 42 });
To get one value:
var foo = $('.parent').values('foo');
To set one value:
$('.parent').values('foo', 'bar');

For more details on all available functions and configuration options, see the comments in  the source.

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

Hackers

Hackers

Steven Levy / O'Reilly Media / 2010-5-30 / USD 21.99

This 25th anniversary edition of Steven Levy's classic book traces the exploits of the computer revolution's original hackers -- those brilliant and eccentric nerds from the late 1950s through the ear......一起来看看 《Hackers》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具