Right, idiot moment coming up. I've done a search, but can't find the right solution.
I've got a jQuery selector selecting a class, maybe an ID, in fact it could be anything, this selector is fed into a function I'm programming.
I need to be able to figure out the type of each matched element, for example:
<div class="target"></div>
Would return div, and
<input class="target" />
Would return input, simple right?
Well you'd have thought so, but I cannot seem to find the solution.
Any help would be greatly appreciated :-)