how to press a button one , and then the second one stops?
<p>How can I make presses button  in the Second one and then stops and then pressed again in the Second one and then stops</p>

<p>But pressure All buttons in second one</p>

<p>I want to press a button 1, and then the second one stops
and then press the button 2, then the second one stops
and then press the button 3, then the second one stops 
and then press the button 4, then the second one stops 
and then press the button 5, then the second one stops </p>

<p>How ??!!</p>

<p>i try this </p>

<p><strong>jquery</strong></p>

<pre><code>&lt;script&gt;
function fs (){
  alert("hello");
  }

setTimeout(function() {
$("#a tr").each(function(){
   $(this).find("input[type=submit]").click();
    });
       }, 1000);

&lt;/script&gt;
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;body&gt;
&lt;table id='a' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;1 = &lt;input type='submit' value='send' onclick=' fs ()'/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 = &lt;input type='submit' value='send' onclick=' fs ()' /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 = &lt;input type='submit' value='send' onclick=' fs ()'/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 = &lt;input type='submit' value='send' onclick=' fs ()'/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 = &lt;input type='submit' value='send' onclick=' fs ()' /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
</code></pre>

<p><strong>But pressure All buttons in second one</strong>  >_&lt;</p>
