Problem in javacript code ?????
I have made to select box in which one is adult and other is for child .
adult select box have 1 to 10 numeric value and child have 1 to 10 numeric value.
but now i want to make if both of select box total is greater than 10 then it will give alert that Total adult and child can not be greater than 10 and it will return false.
var tot=document.form1.adult.value + document.form1.child.value ;
if (tot >= "10")
alert ("Total value can not be greater than 10");
Here like adult have value 4 and child have value 8 then tot should show
12 but it is showing 48 .
So how i can show this as a sum tot
my means how i can show value 12 for this.