title: while loop in jQuery
body: <p>i need to use while loop, i wonder if there are any syntax changes in jQuery </p>
  
  <p><strong>in javascript</strong></p>
  
  <pre><code>  var text = "";
      var i = 0;
      while (i &lt; 10) {
          text += "&lt;br&gt;The number is " + i;
          i++;
      }
      document.getElementById("demo").innerHTML = text;
  </code></pre>
  
  <p>how can i perform loop in jquery just like this?</p>