謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
Tuesday, November 6, 2012
[JavaScript] 簡單的改變按鈕文字功能
直接看程式碼:
<input id="chk" type="button" value="開啟" onclick="if(document.getElementById('chk').value=='開啟'){document.getElementById('chk').value='關閉'}else{document.getElementById('chk').value='開啟';}" />
實作:
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment