<input name="mybutton" type="button" class="agh" id="id_button" value="Dim" onClick="resetDims();">
在上面的輸入標籤中,我必須刪除整個「Onclick = myfunction();」其爲輸入標籤功能,寫我的功能,此按鈕,當我們的「點擊」如何刪除按鈕的現有JavaScript功能
$("#mybutton").onclick(function(){
//$("#mybutton").removeattr("onClick","");
})
是的,你有什麼問題嗎? – adamse 2010-08-05 14:43:22
'mybutton'是元素的名稱屬性,您需要查詢'#id_button'。 – jAndy 2010-08-05 14:48:48