If necessary, defined in the form field, Firefox 4 automatically shows the red border of this element, even if the user clicks the submit button.
<input type="text" name="example" value="This is an example" required />
I think this bothers the user as he / she made no mistakes at the beginning.
I want to hide this red frame for the initial state, but I will show it when the user clicks the submit button, if there is a missing field, marked as required.
I looked at :required and :invalid on the new pseudo selector, but the changes for before and after checking. (from Firefox 4 Required input form RED border / outline )
Is there a way to disable the red border before the user submits the form and show it if there are some missing fields?
attributes border firefox4 required
Cyril N. May 9, '11 at 15:50 2011-05-09 15:50
source share