謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Friday, June 10, 2011
[jQuery] 如何取得被選取的radio值
假如要取得被選取的radio值,語法如下:
var sex = $("input[name='sex']
:checked
").val();
sex就是使用者所選取的值
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment