I want to disable all checkboxes, all dropdown lists & textboxes (except the buttons) at one shot, those are present in my page.
The below code is not working, Please rectify.
$('checkbox').filter('type=[button]').attr("disabled", "disabled");
$('input').filter('type=[button]').attr("disabled", "disabled");
$('select').filter('type=[button]').attr("disabled", "disabled");
NB: I dont want to disable the buttons present in my page.
Assuming you’re using jQuery v1.6.*, you should be using
.prop("disabled", true).