KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to detect if a tag is self closing with JQuery like an image tag? Something dynamic not just an image tag. if ($('.selector')[0].tagName.toLowerCase()=="img") { // do something }
Tags (comma-separated)
Save Edits
Cancel