tagName
Código Javascript
:
Ver original<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$( function (){
link = $('#a') ;
div = $('.d') ;
alert ( link[0].tagName +' y '+div[0].tagName);
});
</script>
</head>
<body>
<a id="a" href="#">link</a>
<div class="d">div</div>
</body>
</html>