当我使用Val()设置SELECT值时,为什么jQuery更改事件不触发?
change()val()
<select id="single">
<option>Single</option>
<option>Single2</option></select><script>
$(function() {
$(":input#single").change(function() {
/* Logic here does not execute when val() is used */
});
});
$("#single").val("Single2");</script>波斯汪
MMTTMM