I have jquery code that puts borders around <p> tags but it is also doing so for <p> tags with no text or child nodes in them. I was wondering if I could ignore <p> tags that have no content inside them. Would “not has” be considered here?
p tags with spaces should also be ignored
Try:
You can try it here.