Linked Questions

Popular Questions

How to display input value next to each other in jQuery?

Asked by At

I am building a calculator. I am able to display a single input value for each click but I stuck with display input value next to each other. For example, if I click 1, 2, 3, it should display (123) in the input field.

$('button').on('click', function(e) {
        var btn = e.target.innerHTML;

        $('#display').val(btn);
        }
 });

Thank you!

Related Questions