2
I’m trying to add two values, for example:
a = 400; b = 200;
I try the sum through "a + b", however instead of jQuery returning me "600" it returns me "400200".
The real 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 it takes to receive the sum of the values?
inserts your code into the question for analysis, jQuery is concatenating the values and not adding.
– Filipe Moraes
I put the excerpt of my code Philip
– Felipe