CSS - input:invalid not

254
January 16, 2018, at 4:25 PM

I'm having a validation problem ... If I put select field like this: It already appears invalid, even without

<option value=''></option>

If I put the select field like this:

It stays right without even touching

    <option value=' '></option>

I want it to only begin to validate after selecting

Follows his CSS

.form-validate input:invalid, textarea:invalid, select:invalid { 
  background: url(../img/error.png) no-repeat 98% center; 
  border: 1px solid #ebccd1; 
  box-shadow: 0 0 5px #d45252; 
  color: #a94442; 
}

enter image description here

How can I leave to just check if it invalid when submitting the Submit, because when I select 'select' (this is already working) ...

I thought about using the:

input :not (:empty)

because I understand that this would identify if when the value is not 'empty', it does nothing ... but it did not work

Rent Charter Buses Company
READ ALSO
cannot run project in server [on hold]

cannot run project in server [on hold]

When i am running project in localhost it is working fine, while running in my server i am getting following error

170
How to detect Safari, Chrome, IE, Firefox and Opera browser?

How to detect Safari, Chrome, IE, Firefox and Opera browser?

I have 5 addons / extensions for FF, Chrome, IE, Opera and Safari

631