I'm trying to add two values, for example:
a = 400; b = 200;
I try to sum by means of "a + b", however instead of jQuery returning "600" it returns me "400200".
The actual code is this:
var startField = $dialogContent.find("input[name='newdate']").val();
var duracao = $dialogContent.find("input[name='duracao']").val();
console.log('final: ' + startField + duracao * 60000);
What does it take to receive the sum of the values?