2014-03-24 28 views

回答

3

使用逗號。如果你想多個事件,您將需要使用on並指定有

$("#selector1, #selector2").change(function() { //not a valid code 
    alert("hi"); 
} 
+0

這就是我要找的人。非常感謝。 – Lakhae

2

Set類值都選擇

<input class="className" id="selector1".... 
<input class="className" id="selector2".... 


$(".className").change(function() { //not a valid code 
     alert("hi"); 
     ... } 
相關問題