<inputID= "Txtbegindate"onclick= "$ (' #divDate '). css ({' Top ': $ (' #txtBeginDate '). Offset (). top+ ' px ', ' Left ': $ (' #txtBeginDate '). Offset (). left+ ' PX '}) "style= "width:170px;padding:7px 10px;border:1px solid #ccc; margin-right:10px;"/> <label><inputtype= "Radio"name= "Sotype"value= "0"checked/>Mall</label> <label><inputtype= "Radio"name= "Sotype"value= "1" />Buy</label> <label><inputtype= "Radio"name= "Sotype"value= "2" />Industry</label> <Buttontype= "button"name= "Appidsubmit"onclick= "Chaxun ()"value= "true"class= "Btngreen vm" ><Strong>Inquire</Strong></Button> <Script>$ (document). Ready (function(){ vartype=1; if(Type==1){ $('input[name= "Sotype"]:eq (1)'). attr ("checked",'checked'); }Else if(Type==2){ $('input[name= "Sotype"]:eq (2)'). attr ("checked",'checked'); } });
</script>
$ (' input[name= ' Sotype "]:checked '). Val ();//Gets the selected value
jquery Modify Get Radio of selected items