Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Form Validation - Drop Down List

Featured Replies

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

 

 

 

 

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> 
  • 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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.