/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// e.target.tagName.toLowerCase()
var $el = (e.target.tagName.toLowerCase() == 'li')? $(e.target) : $(e.target).parent();
Comments
 Subscribe to comments
                    Subscribe to comments
                
                