I want to disable all controls in a page using jquery except controls contained in a particular div.
$('input,select,textarea,div:not("#viewNotice")').attr('disabled', 'disabled');
I have tried using above selector, but its not working good. Here I am disabling all input, select and textarea
controls leaving viewNotive div.
Note: In viewNotice div I have a JqGrid. I dont want to disable jqgrid.