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))');
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))');