javascript - file working in fiddle, but not worked in browser -
my module working fine in fiddle, same thing doesn't work in browser.
i'm using jquery , bootstrap. read values json file , pass value textbox in every second using javascript.
i don't understand problem. here's a link example.
(function ($) { $(document).ready(function () { $.ajaxsetup({ cache: false }); setinterval(function () { $.getjson('/echo/js/?js={"var1": "30", "var2": "40"}', function (data) { if (data.var1) { $('#c1-cycle').val(data.var1); } if (data.var2) { $('#c2-cycle').val(data.var2); } }); }, 1000); }); })(jquery);
Comments
Post a Comment