These are the strings I have:
"test123.00"
"yes50.00"
I want to add the 123.00 with 50.00.
How can I do this?
I used the command parseInt() but it displays NaN error in alert box.
This is the code:
str1 = "test123.00";
str2 = "yes50.00";
total = parseInt(str1)+parseInt(str2);
alert(total);