ruby on rails 4 - JQuery doesn't work unless I refresh -


i'm trying fadein circle in rails 4 app , works when refresh page. jquery far

  $(document).ready(function() {      $(".circle-div").hide().fadein(2000);    }) 

i tried using doing

  $(document).ready(function() {      location.reload($(".circle-div").hide().fadein(2000));    }) 

and reloads pages non stop. appreciated.

give whirl:

$(document).ready(function() {     $(".circle-div").hide().delay(500).fadein(2000); }); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -