Enable/Disable all text boxes using jQuery
$("#btnEnableDisable").toggle(function() {
$("INPUT[type=text],INPUT[type=password],TEXTAREA").attr("disabled", "disabled");
$(this).attr("disabled", "");
}, function() {
$("INPUT[type=text],INPUT[type=password],TEXTAREA").attr("disabled", "");
});
$("#btnEnableDisable").toggle(function() {
$("INPUT[type=text],INPUT[type=password],TEXTAREA").attr("disabled", "disabled");
$(this).attr("disabled", "");
}, function() {
$("INPUT[type=text],INPUT[type=password],TEXTAREA").attr("disabled", "");
});
0 comments:
Post a Comment