当前位置: 代码迷 >> J2EE >> radio被选中其后单击产生事件
  详细解决方案

radio被选中其后单击产生事件

热度:91   发布时间:2016-04-22 00:36:54.0
radio被选中然后单击产生事件
<p align="left">请选择密码找回方式:</p>
<input id="select_01" type="radio" name="select" checked="checked">001
<input id="select_02" type="radio" name="select">002
<input id="select_03" type="radio" name="select">003
<input type="button" onclick="rdClick()" value="确定">

function rdClick(){
$("#select_02").……{
……
});
}

我的想法是radio选中002的时候,单击确定按钮,跳到另一个页面,请问省略号处怎么写代码

------解决方案--------------------
用form的action提交或是windows.location.href 来进行页面跳转
------解决方案--------------------
JScript code
function rdClick(){  if($("#select_02").attr("checked") == "checked"){    ....  });}
------解决方案--------------------
xxxbutton.click();