jQuery.change()事件未被触发
jQuery .change() event is not being triggered?
示例位于http://jsfiddle.net/4RAPH/或参见以下内容:
<select class="businessTypePullDown">
<option value="" disabled selected>Business Type</option>
<option value="1">General</option>
<option value="2">Lawyer</option>
<option value="3">Software Development</option>
<option value="4">Auto-repair</option>
</select>
function filterPullDown () {
alert('hello');
}
$("businessTypePullDown").change(filterPullDown);
只是一个拼写错误,您漏掉了一个点:
$(".businessTypePullDown")
你的小提琴更新了:http://jsfiddle.net/4RAPH/1/
相关文章:
- Bootstrap 3 Datepicker v4:dp.show和dp.change事件在Datepicker内联时不
- 在change事件javascript上动态添加行
- 了解'这'在jQuery on change事件中
- 为什么我的on change事件在ie9上返回空
- jQuery.change()事件未被触发
- 在on.change事件之后运行函数
- 选择使用 jQuery 接收 change() 事件的表单的提交按钮
- 使用 ng-change 对输入类型数据进行 JavaScript 取消事件
- 从服务器获取数据,并使用$http服务和ng-change在select事件上显示它
- 试图通过模块模式在DOM元素上实现change()事件
- 收听Aloha编辑器“aloha-smart-content-change”事件
- 将 on('change') 的事件侦听器添加到 Google 地图信息窗口
- 当 ng-change 事件发生时,函数不会在角度 js 中调用
- IE 的行为与 jQuery change/ajax 事件不一致
- 如何在角度 UI 开关中获得 ng-change 事件
- 使用 .change Jquery 事件更改内容
- 将当前元素发送到 ng-change 事件
- 检测复选框是否在 Angular.js ng-change 事件中处于选中状态
- 与jQuery“change()”事件的反面是什么
- Dojo 等效于事件 .change()