I'm attempting to retrieve the ID of the element I'm clicking on
$mainBox.on('click', '.menuBtn', function(event) {
    console.log(event.target.attr('id'))    
});
the element I'm clicking is loaded as part of an external html, this would be the line that is being clicked:
<li class="menuBtn" id="item03"><span class="styleClass1">03</span><span class="styleClass2">Menu Item</span></li>
how do I get item03? event.target.attr('id') doesn't do it
 
    