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