On Jun 6, 2006, at 5:15 PM, Charlie Griefer wrote:
> what kind of element is count_cases? just one element with that ID?
<head>
<script language="javascript" type="text/javascript">
function setTotal()
{
aCase = 180;alert(aCase);
casesCount = parseInt(document.getElementById
('count_cases').value);alert(casesCount);
total_cases = casesCount * aCase;alert(total_cases);
document.getElementById('total_bottles').innerHTML =
total_cases;
}
</script>
</head>
<body onload="setTotal()">
<select name="count_bottles" id="count_bottles" onchange="setTotal()">
<option value="0">none</option>
<option value="1">1</option>
</select>
etc.
Right now it's failing on the multiplication line.
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242686
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54