Summary: Random, standalone functions for form analysis.
Function | Summary |
gtMCSelCountOTF |
How many choices are currently selected in the provided select-multiple or checkbox elements? This function is intended for "on-the-fly" analysis, before the form is actually submitted. |
util_form.js
: OverviewRandom, standalone functions for form analysis.
util_form
.gtMCSelCountOTF()
How many choices are currently selected in the provided select-multiple or checkbox elements? This function is intended for "on-the-fly" analysis, before the form is actually submitted.
This is a generically-useful debugging function, and is entirely unrelated to the other functions in validate_form.js
cb_orSMElement
: The multiple choice form element. Required, and must be of type "checkbox" or "select-multiple".A number, representing the number of choices selected/checked currently. Zero if nothing is selected/checked.
onChange
" event. Such as:
<SELECT name="count" onChange="return gtMCSelCountOTF(this.form);">
<OPTION value="0">0</OPTION>
<OPTION value="1">1</OPTION>
</SELECT>
gtMCSelCountOTF(cb_orSMElement)
___RPLC___ vfjs_doc_footer ___RPLCZ___