Hello,

I have a simple problem - what is the best syntax / way to get the DOM
type of a matched element? I am unable to find this in the docs...

Example:

<div class="aaa">Some Text</div>
<span class="aaa">Span Text</div>
<form>
   <input type="button" class="aaa" />
</form>

How can I get the types of matched elements - $(this).val().type -
below - reports "undefined" - but I would like to get "div", "span",
"button", etc:

$(".aaa").each(function() {
        alert($(this).val().type);
});

Thanks in advance for your help.

Reply via email to