title: Show a progress bar by 10% steps
body: <p>I'm trying to show a progression bar in my HTML witch have the class .</p>
  
  <p>I want it progress by 10 (0, 10, 20, 30, 40, ...) till 100%, where I want to redirect to another page.</p>
  
  <p>Here my JS:</p>
  
  <pre><code>for (x=0; x&lt;= 100; x+10) {
      window.setInterval(function(){
          if($('.loading-progress').css('width') != '100%') {
                  $('.loading-progress').css("width", x+"%");
          }
      }, 2000);
  }
  </code></pre>
  
  <p>I do not understand why my code do not works.</p>
  
  <p>Any help please.</p>
  
  <p>Thanks.</p>