jqeruy add 2 variable code example Example: how to sum two var in jquery var a = 1; var b = 2; var c = (+a) + (+b); alert(c); //or whatever you want