$("p").not($("p").contains("1"));

See:

visualjquery.com >> DOM >> Traversing >> not(elems)

On Jan 11, 2008 10:35 AM, Sean O <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm trying to select elements that do not contain certain text.
> In effect, the opposite of .contains().
>
> e.g.
> <p>1:</p> <p>1:</p> <p>2:</p> <p>3:</p> <p>4:</p>
>
> How can I select all <p>s without a 1 in the text?
> like... $("p").doesNotContain("1")
>
> Various attempts with not: and filter() have failed...
>
>
> Thanks,
> SEAN
> ________________
> www.sean-o.com
> --
> View this message in context: 
> http://www.nabble.com/Opposite-of-.contains%28%29---tp14758914s27240p14758914.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>

Reply via email to