jquery - Progress Bar is not working -


can tell me how progress bar work? in html

<html>    <head>       <link rel="stylesheet" type="text/css" href="mystyle.css">       <script type="javascript/text">          var progress = setinterval(function() {              var $bar = $('.bar');               if ($bar.width()==400) {                 clearinterval(progress);                 $('.progress').removeclass('active');              } else {                 $bar.width($bar.width()+40);              }              $bar.text($bar.width()/4 + "%");          }, 800);       </script>     </head> <body>    <div class="container">      <div class="progress progress-striped active">         <div class="bar" style="width: 0%;"></div>      </div>    </div> </body> 

in css:

@import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css');  .container {    margin-top: 30px;    width: 400px; } 

what's wrong it? can't after run it. run @ sever too. here: http://jsfiddle.net/xxm2z/ please help.

you don't include bootstrap.js in code - in fiddler included dynamically checkbox on leftside. install bootsrap in standalone code.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -