Enable/disable button based on condition shows alert two times
<p>I have two input fields and two buttons in a row. Like that having 3 or more rows in a page. For each row i need to enable the two buttons only when the two input fields have any value. I gave id for two buttons like this.</p>

<pre><code>&lt;a href="#" style="margin: auto;" id="first_link"&gt;&lt;/a&gt;
&lt;a href="#" style="margin: auto;" id="second_link"&gt;&lt;/a&gt;
</code></pre>

<p>In jquery i gave as follows:</p>

<pre><code>$('#first_link').click(function() {alert("Some info will come soon")});
$('#second_link').click(function() {alert("new info will come soon")});
</code></pre>

<p>But this alerts coming for all rows (for three rows 3 alerts showing). How can i show alert only one time for entire table in that page.</p>
