After i selected option 1 and after i add the number like 100 it results like this 100100
This is the code:
var userAmount; var userMoney = 100;
You need to cast your values to integers first. Try using parseInt()
change:
var totalMoney = userMoney + userAmount;
to this:
var totalMoney = parseInt(userMoney, 10) + parseInt(userAmount, 10);