<a href="#" onClick='gets("txtB",this)' class="txtB">b</a>
function gets(btn, ths){ $("."+ths.className).html(btn); }