This is life saving for the coder, as many time we have to make textbox readyonly, this also work with other controls.
1)single control
$('#TextBoxID').attr('readonly', 'true');
2)all text box with type text
$('input[type="text"]').attr('readonly','true');
3)all select control
$('select').attr('disabled','true');
1)single control
$('#TextBoxID').attr('readonly', 'true');
2)all text box with type text
$('input[type="text"]').attr('readonly','true');
3)all select control
$('select').attr('disabled','true');