How to bind function on different butons?
<p>I tried to bind alert on my buttons:</p>

<pre><code>for(var i=1; i&lt;=3; i++){
   $('#' + i).live('click', function(){
       alert(i);
   });
};
</code></pre>

<p>It is my html code:</p>

<pre><code>&lt;input id="1" type="button" value="one"&gt;
&lt;input id="2" type="button" value="two"&gt;
&lt;input id="3" type="button" value="three"&gt;
</code></pre>

<p>But I get 4 on all buttons. How to fix it to get correctly alert values? (1, 2, 3 and etc..)</p>

<p><a href="http://jsfiddle.net/sergey1986/UFjsM/" rel="nofollow">http://jsfiddle.net/sergey1986/UFjsM/</a></p>
