謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Saturday, June 3, 2017
[jQuery] 如何讓 checkbox 像 radio button 一樣 只能單選?
$("input[name='mycheckbox[]']").click(function() {
$("input[name='mycheckbox[]']").not(this).removeAttr("checked");
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment