如何取RadioButtonList中的各項(xiàng)的值,取選中項(xiàng)的值,如:
$("input[name='rbtList']:checked").val()
獲取radiobuttonlist的text,查看源代碼發(fā)現(xiàn)它被解析成<input>...</input>..<lable>abc</label>
所以取它RadioButtonList選中項(xiàng)的Text的值時(shí),可以如下:
$("input[name='rbtList']:checked+label").text()
聯(lián)系客服