js:
<script type="text/javascript">function ok() {
document.getElementById("txtPassWord").disabled =false;
}
function no() {
document.getElementById("txtPassword").disabled =true;
}</script>
添加radio控件:
<label>
<input type="radio"name="group"onclick="ok()"/>是</label>
<label>
<input type="radio"name="group"onclick="no()"/>否</label>
添加textbox控件:
<input type="text"id="txtOldPassword"disabled="true"/>
以上,实现选择不同按钮,textbox控件显示可编辑和不可编辑两种状态