How can I determine the element type of a matched element in jQuery? February 19, 2023 by Tarik Just one jQuery too much: $("[id$=" + endOfIdToMatch + "]").each(function () { alert(this.tagName); });