Handle Button click Generically
<p>I have 6 buttons on the page. On every button click, I do the following:</p>

<pre><code>$('#btn1').click(function(){
        $('#txt').val("+");
    }
)

$('#btn2').click(function(){
        $('#txt').val("-");
    }
)

$('#btn3').click(function(){
        $('#txt').val("*");
    }
)
</code></pre>

<p>If you observe, the functionality in each click remains the same, the only difference is a new character is added to the textbox. How can i write this generically?</p>
