If it is a drop down list, you can use the VWZ_IsListItemSelected() function frmvalidator.addValidation("city_other","req","Please fill-in the city name", "VWZ_IsListItemSelected(document.forms['myform'].elements['city_list'],'Other')"); VWZ_IsListItemSelected(list_object, item_value) The first parameter is the drop down list object and To make things even easier browsers provide an :invalid pseduoselector that can be used to select all elements with validation errors. A alert dialog box pops up to notify the user of any blank fields. useful reference Therefore the check var message = node.validationMessage || 'Invalid value.' is necessary so a message is displayed for Opera. 5) I do nothing to style the individual fields based on whether
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. Form will consist of two input fields (name and email) and a submit button.b. Writing referee report: found major error, now what? this page Examples might be simplified to improve reading and basic understanding.
How you design your form plays a role in how easy you will be able to identify your form elements. Make the script handle multiple