【发布时间】:2011-02-06 00:56:45
【问题描述】:
我编写了一个当前在 Click 事件上运行的 jQuery 函数。我需要更改它,以便在更改下拉框(Select-Option)值时运行。这是我的代码:
<form id="form1" name="form1" method="post" action="">
<label>
<select name="otherCatches" id="otherCatches">
<option value="*">All</option>
</select>
</label>
</form>
$("#otherCatches").click(function() {
$.ajax({
url: "otherCatchesMap.php>",
success: function(msg) {
$("#results").html(msg);
}
});
});
【问题讨论】:
-
我知道这类 cmets 不受欢迎,但尽管如此:谷歌搜索
jquery change会为您提供change()函数的链接作为第一次点击:api.jquery.com/change
标签: javascript jquery