jquery is really more convenient than JS, especially in the operation of the page in the form of items, this chapter webmaster and everyone to share with jquery operation radio button radio, to enable the dynamic selection of a radio button and read the selected radio button value of the method, This article comes from Angel Jian Zhan www.angelweb.cn Let's look at an example and code: <script>$ (": Radio[name= ' angelasp '][value= ' Angel ']"). attr ("Checked", "true"); </script> The above code means to select all the radio button radio named "Angelasp", and find the one with the value "Angel", so that it is selected. var radio1value=$ (": Radio[name= ' angelasp ']:checked"). Val (); This code means to take a value, reading the value of the button selected in the set of radio buttons named "Angelasp"! Well, the other seems to have nothing to do, hoping to help all the useful to use jquery operation Radio radio button friends, Angel Jian station http://www.angelweb.cn first! Please have a lot of support this site Oh! |