Javascript Problem
Hi
I have written javascript for adding teo values.but it not added but give concate result.
var Store='';
function myfun(id,value)
{
var Tchk;
var str=value;
Tchk=document.getElementById(id).checked
if(Tchk==true)
{
Rate= str + Store;
}
Store=Rate
}
suppose str=123
store=456
I get result as Rate=123456
But i want 579
what i do?
Thanks
monika
|