Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


whats the difference between e preventdefault and return false


whats the difference between e preventdefault and return false  using -'$("a.avatar").click(function(e){
,,,,,,e.preventDefault();
,,,,,,$("#thumbnails").fadeIn();
,,,,});

and,

$("a.avatar").click(function(e){
,,,,,,$("#thumbnails").fadeIn();
,,,,,,,,,,return,false;
,,,,});

Both,can,achieve,the,same,goal,for,me.'

    This question already has an answer here:
    
        
            event.preventDefault() vs. return false
                
                    9 answers

asked Oct 13, 2015 by rajesh
edited Oct 15, 2015 by rajesh
0 votes
13 views



Related Hot Questions



Government Jobs Opening


...