6arredja
01-31-2005, 06:56 PM
<html>
<head>
<script language=javascript>
function old()
{
x = document.buy.gameboyold.value;
y = document.buy.amount.value;
document.buy.amount.value=" ";
document.buy.amount.value= y+x;
}
</head>
<body>
<form name=buy>
<input type=checkbox name=gameboyold onClick="old()">
<input type=text value=0.00 size=5 name="amount">
</form>
</body>
</html>
This is supposed to show the dollar amount owed (20)
but it just writes out: 0.0020 and adds 20 every time it is clicked on help me!!!!!!!!
<head>
<script language=javascript>
function old()
{
x = document.buy.gameboyold.value;
y = document.buy.amount.value;
document.buy.amount.value=" ";
document.buy.amount.value= y+x;
}
</head>
<body>
<form name=buy>
<input type=checkbox name=gameboyold onClick="old()">
<input type=text value=0.00 size=5 name="amount">
</form>
</body>
</html>
This is supposed to show the dollar amount owed (20)
but it just writes out: 0.0020 and adds 20 every time it is clicked on help me!!!!!!!!