jQuery Values
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.
评论
Form Field Default Values
Providesasimplewaytoassigndefaultvaluestotextboxesandtextareas.Defaultvaluesareonlyplacedinemptyfiel
Form Field Default Values
0
jQuery easyThumb
AcombinationofjQueryandPHP(forthethumbnailgeneration).Turnaunsortedlistoffullscale-imagestothumbnail
jQuery easyThumb
0
jQuery Tiper
jQueryTiper是一个轻量级的jQuerytooltip,可以为任何元素指定弹出窗口,在线演示。使用简单:<aclass='tiper'id='tooltip_1'href='http:/
jQuery Tiper
0
jQuery Attic
ThispluginwillallowusersofjQuerytotakeadvantageofDOMstorageacrossvariousbrowsers.DOMStorageallowsasi
jQuery Attic
0
jQuery blockUI
这个jQuery插件能够为页面上的任意元素添加遮层,阻止用户操作。具体可以用于制作提示等待响应的对话框。当要执行某个较长操作时候,通过blockUI来阻止当前用户继续操作。
jQuery blockUI
0