Simple jquery progress bar

Simple jquery progress bar
Simple jquery progress bar
Title : Simple jquery progress bar
Duration : 11:05
Channel : kudvenkat
Label : simple jquery progress bar example, animated jquery progress bar, jquery progress bar animate, create progress bar using jquery, progress bar using jquery example, jquery progress bar display percentage, jquery progress bar display value, jquery tutorial, jquery tutorial for beginners
Simple jquery progress bar
Simple jquery progress bar
Simple jquery progress bar
Simple jquery progress bar

Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/simple-jquery-progress-bar.html In this video we will discuss how to create a simple animated jquery progress bar using animate() function. Replace < with LESSTHAN symbol and > with GREATERTHAN symbol <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#myButton').click(function () { animateProgressBar($('#ddlPercent').val()); }); function animateProgressBar(percentComplete) { $('#innerDiv').animate({ 'width': (500 * percentComplete) / 100 }, 2000); $({ counter: 1 }).animate({ counter: percentComplete }, { duration: 2000, step: function () { $('#innerDiv').text(Math.ceil(this.counter) + ' %'); } }); } }); </script> </head> <body style="font-family:Arial"> Select percentage : <select id="ddlPercent"> <option value="10">10</option> <option value="20">20</option> <option value="30">30</option> <option value="40">40</option> <option value="50">50</option> <option value="60">60</option> <option value="70">70</option> <option value="80">80</option> <option value="90">90</option> <option value="100">100</option> </select> <input type="button" id="myButton" value="Start Animation" /> <br /><br /> <div id="outerDiv" style="background-color:#EEEEEE; height:20px; width:500px; padding:5px"> <div id="innerDiv" style="width:0px; height:19px; text-align:center; background-color:red; color:white"></div> </div> </body> </html>



Share this

Related Posts

Previous
Next Post »