Well, a question arose while I was tinkering with jQuery and the code worked perfectly in Chrome using the $(event.target)
event, already in Firefox it only worked with $(this)
, so that doubt arose. What is the main difference between them?
$(document).on('click', '.bermuda', function(e){
$(e.target).fadeOut(300);
});
$(document).on('click', '.bermuda', function(){
$(this).fadeOut(300);
});