What I'm trying to do here is this:
function newFunction( element ){
var newSelector = element.getSelector();
}
$('.class li a').on('click', function(){
newFunction( $(this) );
})
There is no getSelector function, so how can I do this?
I thought about getting first the html tag of $(this)
and then its parent and so on but I cannot find a way to get the html tag (not content) of $(this)
.
Any ideas?
Thanks