# Adding two numbers(digits)

**URL:** <https://forum.kirupa.com/t/adding-two-numbers-digits/137946>\
**Category:** Uncategorized\
**Created:** [February 18, 2005, 3:50pm UTC](https://forum.kirupa.com/t/adding-two-numbers-digits/137946 "2005-02-18T15:50:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HITMANukas](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@HITMANukas](https://forum.kirupa.com/u/HITMANukas)\
**Post date:** [February 18, 2005, 3:50pm UTC](https://forum.kirupa.com/t/adding-two-numbers-digits/137946/1 "2005-02-18T15:50:48Z")

</div>

Hello. I have to input text fields and third - dynamic. Also I have a button. I want that on button press in the dynamic field would be displayed the sum of two numbers entered in those input fields. First field: var1 Second: var2  
and dynamic text: answer.

I wrote scipt but look what happens. For example I input to numbers: 5 and 6 I need to get answer 11 but the sum is shown: 56 . Any help? Thanks.
