jquery/javascript: function(e){… what is e? why is it needed? what does it actually do/accomplish?

$('#myTable').click(function(e) {
    var clicked = $(e.target);
    clicked.css('background', 'red');

Can someone explain this to me, and explain why e is needed, and what it actually does..



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.