《Javascript 如何得到input type=radio 的值?.docx》由会员分享,可在线阅读,更多相关《Javascript 如何得到input type=radio 的值?.docx(2页珍藏版)》请在三一办公上搜索。
Javascript 如何得到input type=radio 的值?Javascript 如何得到input type=radio 的值? !- function chk var obj = document.getElementsByName(imgposition); for (i=0;i for example: 1-10 years old 11 years old 12-120 years old This example uses script to detect which radio button the user selects. function detect if (radio0.checked) alert(Youre between 1 and 10 years old.) else if (radio1.checked) alert(Youre 11 years old.) else alert(Youre between 12 and 120 years old.)