August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form.checkbox.value
The value property provides access to value attribute of the check box. This property is a read/write value that is sent to the server when the form is submitted.
Listing 7.48 uses the value property of each check box to create instructions for the customer on how to order his or her custom pizza.
<html> <h2>Pizza Machine</h2> Step1: Please select your pizza toppings:<BR> <form name="orderForm"> <input type="checkbox" name="onion" value="hot onion">Onion<br> <input type="checkbox" name="bacon" value="spicy bacon">Bacon<hr> Step 2: <input type="button" value="Order ... |
Read now
Unlock full access