View Single Post
Old 10-28-2004, 01:23 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
check this code out.. you probably need to use 'parseInt' on your variable because javascript thinks it is a string.
HTML Code:
<Script language="Javascript">
var a = "1";
document.write(a+9);
document.write("<br>");

var c = parseInt(a);
document.write(c+9);
</script>
__________________
Mike
sde is offline   Reply With Quote