Select Elements NOT Matching selector .not(selector)

.not(selector)

selector: { selector: ".className", Function: function(index,element){...}, jQuery Object: $("selector"), DOM element: document.getElementById( "id" )}
e.g. $("div").not("#someID")

.not(selector) selects elements from the mathced set that do NOT match selector

Example 1: $("div").not("#someID") will select all <div> but NOT the one with id='someID'.
<div id="someID">a</div>
<div class="className">b</div>
<div>c</div>
Example 2: $("div").not( function(index) { return index < 2 } ) will select all <div> but NOT the ones with index < 2.
<div id="someID">a</div>  // index = 0 
<div class="className">b</div>  // index =1 
<div>c</div>
Example 3: $("div").not($("div:last")) will select all <div> but NOT the one that is equivalent to $("div:last").
<div id="someID">a</div>
<div class="className">b</div>
<div>c</div>  // last 
Example 4: $("div").not(document.getElementById( "someID" )) will select all <div> but NOT the one that is equivalent to DOM element document.getElementById( "someID" ).
<div id="someID">a</div>
<div class="className">b</div>
<div>c</div>
jQuery traversing filtering .not(selector)