jQuery Live Bind

程序名称:jQuery Live Bind

jQuery Live Bind 介绍

Using $.fn.is_match(selector) to build a live bind method:

sample: <div class="kkkk"> <div class="ppp1" title="333">hello1</div> </div> <script> function alr(){alert(this.innerHTML);} function alr1(){alert('hello:'+this.innerHTML);} $.live_bind(".kkkk .ppp1 + .ppp[title='333']", 'click', alr); $.live_bind(".kkkk .ppp[title='333']:nth-child(3)", 'click', alr1); //"tr:eq(3)" should be "tr:nth-child(4)" //"tr:gt(3)" should be "tr:nth-child(4) ~ tr" //"tr:gt(0)" could be "tr:not(:first-child)" //"tr:first" should be "tr:first-child" $('.kkkk').append('<div class="ppp" title="333">hello</div>'); $('.kkkk').append('<div class="ppp" title="333">jack</div>'); </script>

jQuery Live Bind 官网

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

相关编程语言

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