【发布时间】:2011-11-12 03:59:23
【问题描述】:
如果我有单选按钮:
<input id="y0" type="radio" name="myRadioBtns" value="a" checked> <label for="y0"></label>
<input id="y1" type="radio" name="myRadioBtns" value="b"> <label for="y1"></label>
<input id="y2" type="radio" name="myRadioBtns" value="c"> <label for="y2"></label>
单选按钮可能已经绑定了一个更改事件处理程序,如下所示:
$('input[name='myRadioBtns']').change(function() {
//EVENT HANDLER
});
我需要检查单选按钮是否已经与“更改”事件处理程序绑定。
我的问题是如何检查单选按钮是否已经与“更改”事件处理程序绑定?
【问题讨论】:
标签: javascript jquery jquery-selectors jquery-validate jquery-events