I am attempting to give my admins a mouseover of the element they are hovering over to give them a clue to what to edit, if anything. Here is my code:
$(document).tooltip(); $(document).on('mouseover','*',function(){ $(this).attr('title',$(this).prop('id')); console.log($(this)); }).on('mouseout',function(){ $(this).attr('title',''); }); This works great for elements with an id. What I need to get is a combination of html element and id (if any) on mouseover.
$(this).prop('nodeName')