Form validation common error message for 2 input fields

racoen

New Member
Have a form validator and want to get common error message for the following both input fields. Is this possible:\[code\]<select id="category" name="category" onchange="showSelected1();" style="width:160px"><option value="http://stackoverflow.com/questions/15727157/00"><font color="#999999">Category</font></option><option value="http://stackoverflow.com/questions/15727157/1">Marriages</option><option value="http://stackoverflow.com/questions/15727157/2">Birthdays</option></select><select id="city" name="city" onchange="showSelected();" style="width:160px"> <option value="http://stackoverflow.com/questions/15727157/000"><font color="#999999">City</font></option> <option value="http://stackoverflow.com/questions/15727157/1">New York</option> <option value="http://stackoverflow.com/questions/15727157/2">Washington</option></select>\[/code\]And used gen_validatorv4.js.\[code\] var frmvalidator= new Validator("frm1");frmvalidator.EnableMsgsTogether(); frmvalidator.addValidation("category","dontselect=00","Select Category"); frmvalidator.addValidation("city","dontselect=000","Select City");\[/code\]Want to get error message like "Select category and city". (only one error message for both)
 
Back
Top