I need CSS code to restrict submit button if fields are empty.Daily we are receiving 3-5 blank inquiries through our WordPress landing page submit button.
Where to put these CSS codes if any.
Thanks
I need CSS code to restrict submit button if fields are empty.Daily we are receiving 3-5 blank inquiries through our WordPress landing page submit button.
Where to put these CSS codes if any.
Thanks
Copyright © 2021 Jogjafile Inc.
You really should do this with a script, because doing something like this by CSS is very sensitive to any future changes to your form structure. It can be done with only CSS, using the
:placeholder-shownselector. For this you'll need to add a placeholder to all text inputs.This will work, but for any change in the form you'll need to make sure it doesn't break. I personally won't use this :)