I can select (using jQuery) all the divs in a HTML markup as follows:
$(\'div\')
But I want to exclude a particular div (say h
div
You use the .not property of the jQuery library:
.not
$('div').not('#myDiv').css('background-color', '#000000');
See it in action here. The div #myDiv will be white.