Enable/Disable all text boxes using jQuery

In my previous post "jQuery code to disable-enable all controls of page", we saw how can we disable all the controls of the page. For my project, we had requirement where we need to disable only the text boxes not all the controls. It was not tough with jQuery. Few minutes of work. See below jQuery code.

$("#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", "");
});
See live Demo and Code.

Feel free to contact me for any help related to jQuery. I will gladly help you.