jQuery绑定事件方法
2011-03-03 12:02
363 查看
---------------------------------------------------------------------------------------------------------- html 代码:
And the jQuery:
<select name="activities_limit" id="activities_limit"> <option value="5" selected="selected">5</option> <option value="7">7</option> <option value="10">10</option> <option value="14">14</option> </select>
And the jQuery:
$("#activities_limit").bind("change", function() { alert("value changed"); });----------------------------------------------------------------------------------------------------------JQuery 代码
$('#activities_limit').change(function() { alert('Value change to ' + $(this).attr('value')); });
相关文章推荐
- jQuery 绑定事件到动态创建的元素上的方法实例
- JQuery事件绑定live方法
- jQuery新的事件绑定方法on()
- jQuery判断元素上是否绑定了指定事件的方法
- jQuery中绑定事件的几种方法
- JQuery1.8 判断元素是否绑定事件的方法
- jQuery防止重复绑定事件的解决方法
- jQuery的on方法和bind绑定多个事件
- jquery 事件委托绑定click的使用方法
- jQuery事件绑定的四种方法
- 【笔记】jQuery中on()与delegate()方法给动态添加元素绑定事件
- 原生JS事件绑定方法以及jQuery绑定事件方法bind、live、on、delegate的区别
- jQuery bind/One/live三种绑定事件方法的区别
- 处理jQuery append加入的元素 绑定事件无效的方法
- jquery绑定事件不生效的解决方法
- JQuery绑定事件的方法
- jquery绑定事件的方法on中获取当前所在元素及子元素的方式
- jQuery事件绑定方法bind、 live、delegate和on的区别
- jquery事件重复绑定的快速解决方法