With the following template how can I get just get "Obtain this text"
<h1 class="classA classB"> Obtain this text <span class="unwanted"> unwanted text </span> </h1> I tried $('.classA.classB:not(.unwanted)') but I get the whole thing back without unwanted.