How can I Select and Element with selecting any sub elements
I have the following statement:
$("p:not(>a)").each(function () {
//function here
}
It is just a find and replace function however it doesn't do what I want it to do! Its replacing stuff within the <a></a> tags within the <p></p> tags! i thought :not(>a) would fix this however evidently not!
Could someone please point me in the right direction?