radio选择出现弹出框_前段开发笔记

<!doctype html>
<html>
<head>
<title>单选框radio绑定click事件</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />

</head>
<body>
<input type="radio"  name="c_guomin"   value="yes" style="align: bottom;margin-left:20pt;margin-right:10pt"
onclick="document.getElementById('gmwp').style.display='';document.getElementById('label').style.display='' " />有      
<input type="radio"  name="c_guomin"   value="no" style="align: bottom;margin-left:20pt;margin-right:10pt"
onclick="document.getElementById('gmwp').style.display='none';document.getElementById('label').style.display='none';
document.getElementById('gmwp').value=''"/>没有


<div style="font-family:microsoft yahei;font-size:22pt;padding-left:50pt;padding-top:10pt;color:#4F4F4F">

<label id="label" style="display:none" >请输入名称:<br></label>
<input class="input_b01" type="text" name="c_guomin_name" id="gmwp" style="display:none" style="align: bottom;margin-left:20pt;margin-right:10pt;margin-top:10pt"  />

</div>
</body>
</html>