August 6, 201313 yr Hi, I'm having a few problems with validating a form I have created. The validation was working fine using yycheckform but I've now added a country drop down list but I cant get this to work within the yycheckform validation as this sees the field as being filled with 'Please Select'. Do I have to scrap my current validation and start again? http://www.seatingmatters.com/contact.php Thanks in advance Gare
August 6, 201313 yr Just set the option value to nothing, so the validation thinks it's empty: <option value="- Please select -">- Please select -</option> Change to: <option value="">- Please select -</option>
August 6, 201313 yr Author Hi Lyndsey, I'm running some javascript that lists the country and their states so the 'Please Select' is contained in the java script as another country if that makes sense? So I cannot add your piece of code to the form. Gare
August 6, 201313 yr In that case, you could simply remove the value on page load, this fiddle shows you how and demonstrates an example of the selected option's value: http://jsfiddle.net/dfr7W/
Create an account or sign in to comment