Y
Y
Yuri Yerusalimsky2016-03-29 23:20:32
css
Yuri Yerusalimsky, 2016-03-29 23:20:32

How to program the invalidity of the password input field when the length is less than X in the CSS framework "Materialize CSS"?

I can’t figure out how to make it so that, for example, if the password is less than 8 characters long, the line should light up in red. I didn't find any JQuery event to change the validity/invalidity of the text field.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elwen, 2016-03-29
@Elwen

By default, it can only keep track of the maximum length specified in the length attribute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question