GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 6 von 33 · Medien

Checkvalidity

Kostas Diakogiannis

Checkvalidity

Check Validity

Validating input fields is possible but it doesn't come from a black sorcery. 

It is possible through a specific JS function that every input DOM element has. The checkValidity() function. This functions checks for all the criteria an input field contains and returns a boolean value (true if the data is valid, false if not). 

Anytime this function returns a false value, triggers the 'invalid' event on the field.

Let's see an example of this.

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck