jquery enable/disable text box based on radiobutton

后端 未结 2 1862
日久生厌
日久生厌 2021-02-19 16:13

In my page (jsp) i have a radiobutton group and a textbox (which is disabled initially).

  • Whenever the user clicks on a radio button the textbox should be enabled <
2条回答
  •  情书的邮戳
    2021-02-19 16:28

    $("#some_other_radiobutton").click(function(){
      $("#otherDevText").attr("disabled","disabled");
    });
    

提交回复
热议问题