Posted By

tennison on 03/17/10


Tagged


Versions (?)

element node type


 / Published in: JavaScript
 

  1. // e.target.tagName.toLowerCase()
  2.  
  3. var $el = (e.target.tagName.toLowerCase() == 'li')? $(e.target) : $(e.target).parent();

Report this snippet  

You need to login to post a comment.