- bind - 將符合的物件綁定一個事件
不含 class=button 和 Reset 的 button 物件,綁定 click 事件(先將所有有 id 的表格隱藏,再顯示同樣 ID 名稱的表格)
$(':button:not(".button"):not(".Reset")').bind("click",function(){ $("table[id]").hide(); $("#"+$(this).attr('class')).show(); });
Please follow and like us:
最近迴響