August 1999
Intermediate to advanced
1488 pages
72h 53m
English
getOptionValueCount(key)
The getOptionValueCount function is a top-level function that is not associated with any object. This function returns the number of selected options passed to the function. The key parameter represents the NAME attribute of the <SELECT> tag on which you want to invoke the function.
Listing 8.92 shows how to use the getOptionValueCount function to determine how many options were selected in a "sports" select box.
<SERVER>
// Store the number of selected options in a variable
var counter = getOptionValueCount("sports");
</SERVER>
|
Read now
Unlock full access