Can't create the sum of two values (2+2 isn*t 4 but 22)?
<p>sorry if this is a noob question, but well, I'm a noob.
I want to get the sum of the values of several text field into another text field. My code looks like this:</p>

<pre><code>$('.button').mouseup(function()  {
    var sum = $("#field1").val()+$("#field2").val();
    $("#result").val(sum);
});
</code></pre>

<p>When I click the button the sum of 3+3 isn't 6 but 33. It just adds all numbers to the textfield. If I change the "+" into a "*" it works, 3*3 is 9. 
Could somebody please tell me what I do wrong. Thank you.</p>
