看板 [ Ajax ]
討論串[問題] 用jQuery改input type的屬性?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者tomin (stuffy)時間16年前 (2009/08/29 13:42), 編輯資訊
0
0
1
內容預覽:
我試的結果一樣. 不過我搜到解法了. http://www.mail-archive.com/jquery-en@googlegroups.com/msg31270.html. 不要用attr 改用replaceWith. $("#aaa").replaceWith("<input type=but

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者daidos (JAson)時間16年前 (2009/08/29 10:56), 編輯資訊
0
0
0
內容預覽:
請問一下. 怎麼把 input type的屬性 例如 type="text" 改成 type="button". 我用. $(function(){. $("#aaa").attr("type","button"). });. 一開始網頁就載入就改屬性. 可是會出現錯誤:已丟出(throw),例外事
(還有94個字)
首頁
上一頁
1
下一頁
尾頁