I want to disable all controls on a page using jquery, except for the controls contained in a specific div.
$('input,select,textarea,div:not("#viewNotice")').attr('disabled', 'disabled');
I tried using the above selector, but it does not work well. Here I will turn off all controls input, select and textarealeaving a viewNotive div .
Note: In the viewNotice div, I have a JqGrid. I do not want to disable jqgrid.
source
share