jquery - Rails Issues with Rendering Javascript -


i'm using jquery-tokeninput (loopj.com/jquery-tokeninput/) in rails app. works well, when load page, doesn't render should. when refresh, works perfectly. i'm not sure if javascript incorrect, i'm having similar issues other parts of app (rating system using 5 stars renders when refresh page).

this javascript have:

$(function(){    $("#ingredients_tokens").tokeninput("/ingredientsynonyms.json", {     crossdomain: false,     prepopulate: $("#ingredient_token").data("pre"),     theme: "facebook",     searchdelay: 1   });  }); 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -