Append button value in text box

Hi I am appending my button value into text box, but on every click on button my text value is not resetting.

below is my code:

$(‘#btn1, #btn2, #btn3, #btn4, #btn5’).click(
function(){
$(‘#input1’).val($(‘#input1’).val()+$(this).val());
});
});

I getting this result if I am click on buttons, how I can reset my text box on every click of button.

Thanks…

If you don’t want to append the new value to the old one, just remove the appending bit from this line

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.