How can I see if an element is a “br”?
I have tried to get it via .attr(“type”) and .type() but it always returns undefined!
It would work on a input or button but not on a br element.
How can I see if an element is a br? I have tried to
Share
How about just
$(element).is('br')? For example: