title: How to use javascript variable in smarty section loop
body: <p>I have a table with id = 2 and I want to loop over it</p>
  
  <p>I don't know the syntax , couldn't find anything similar on the net
  please help : </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var u=$('#2').find('tbody &gt; tr').size();
  &lt;%section name='i' start=0 loop=u%&gt;
    alert('in loop');
    &lt;%/section%&gt;
  &lt;/script&gt; 
  </code></pre>