Answers for "disabled textbox in jquery"

2

disable textbox jquery

$("#radiobutt input[type=radio]").each(function(i){
    $(this).click(function () {
        if(i==2) { //3rd radiobutton
            $("#textbox1").attr("disabled", "disabled"); 
            $("#checkbox1").attr("disabled", "disabled"); 
        }
        else {
            $("#textbox1").removeAttr("disabled"); 
            $("#checkbox1").removeAttr("disabled"); 
        }
      });

  });
Posted by: Guest on June-06-2020
0

jquery enable disable textbox

$("input").prop('disabled', true);
$("input").prop('disabled', false);
Posted by: Guest on December-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language