How can I determine the element type of a matched element in jQuery?

Just one jQuery too much:

$("[id$=" + endOfIdToMatch + "]").each(function () {
    alert(this.tagName);
});

Leave a Comment