我编写了一个当前在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>
Run Code Online (Sandbox Code Playgroud)
$("#otherCatches").click(function() {
$.ajax({
url: "otherCatchesMap.php>",
success: function(msg) {
$("#results").html(msg);
}
});
});
Run Code Online (Sandbox Code Playgroud)