$("*").click(function(){ $(this); // how can I get selector from $(this) ? });
Is there an easy way to get selector from $(this)? There is a way to select an element by its selector, but what about getting the selector from element?
$(this)