lordofdavipers
10-04-2005, 11:30 PM
Hey all,
I have a particular food form that asks members to enter a specific numerical value per attending adult and/or child who will eat.
What I'd like to do is have the textbox for adult/child to be : $3.00 adults, $1.50 children.
So for example, when you have "2" in the adult box and "1" in children box, it will add 3.00+3.00+1.50 returning a total value to the guest.
Below is a script I made adding two variables, but it doesn't seem to apply to this situation.
<head><script>
function myAdder (box1, box2){
var total = box1 + box2
document.write(total)
}
</script>
</head>
<body>
<script>
document.write("<BR>")
myAdder(3.50, 3.50)
</script>
</body>
Here is the link to the form. link (http://jeffersonavenuebaptist.com/family_night_supper.htm)
I'm not the greatest with J/S and don't have full skills, so any help is appreceiated.
Thanks,
Andrew
I have a particular food form that asks members to enter a specific numerical value per attending adult and/or child who will eat.
What I'd like to do is have the textbox for adult/child to be : $3.00 adults, $1.50 children.
So for example, when you have "2" in the adult box and "1" in children box, it will add 3.00+3.00+1.50 returning a total value to the guest.
Below is a script I made adding two variables, but it doesn't seem to apply to this situation.
<head><script>
function myAdder (box1, box2){
var total = box1 + box2
document.write(total)
}
</script>
</head>
<body>
<script>
document.write("<BR>")
myAdder(3.50, 3.50)
</script>
</body>
Here is the link to the form. link (http://jeffersonavenuebaptist.com/family_night_supper.htm)
I'm not the greatest with J/S and don't have full skills, so any help is appreceiated.
Thanks,
Andrew