For text input I do:
input
$(\'input[type=\"text\"]\').each(function(){ $(this).attr(\'readonly\',\'readonly\'); });
But what shou
From Jquery 1.6 use
$("#mytxtarea").prop("disabled", true);
Visit http://api.jquery.com/prop/