For example i want addition value two input 20 & 10 and done output in alert but i get in output value 2010 If the i should have this output 30, how is fix it?
Demo: http://jsfiddle.net/SHjZM/
<input type"text" name="ok1" value="20">
<input type"text" name="ok2" value="10">
$('button').live('click', function(){
var val_1 = $('input[name="ok1"]').val();
var val_2 = $('input[name="ok2"]').val();
var Sum = val_1 + val_2;
alert(Sum) // in the here output is "2010" i want output "30" as: "20+10=30"
})