Opposite to jquery has selectors

on with Leave a reply

To select the p tag that contains image we use $('p:has(img)') jquery selector. There is no hasnot function in jquery. But using jquery .not function we can do that.

$('p:not(:has(img))');

Posted on by .

About Gowri

I am professional web developer with 8+ years experience. PHP, jQuery, WordPress, Angular and Ionic are my key skills in web development. I am working with strong enthusiastic team with spirit. We provide all web related solution like HTML/CSS development, Web graphic design and Logo.

Leave a Reply

Your email address will not be published. Required fields are marked *