• Jquery help
    0 replies, posted
I'm trying to create a DOS-like loader in jquery. So far everything works. It counts to five and appends the data, but it only appends a number. So when I run the script I get something similar to: Text..12345 Instead of what I want: Text........ Can someone help me out? Here's my jquery/js code: var total = 0; $("#main").load(function() { $("#main").doTimeout(250, function() { $("#main").append(++total); if (total<5) { return true; } }); }).trigger("load"); I've tried to add in 'var total = total+1' and other variants of that right after the append and also replace '++total' with "." but it breaks the code for some reason. [highlight](User was banned for this post ("wrong section" - GunFox))[/highlight]
Sorry, you need to Log In to post a reply to this thread.