25
Well, a question arose while I was dealing with jQuery and the code worked perfectly in Chrome using the event $(event.target)
, already in Firefox only worked with $(this)
, then arose this doubt. 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);
});
Thank you, very enlightening reply...
– Caio Kawasaki