1
I have a function that checks if a field is less than 3 when focusing (clicking) on the input Email.
In short:
If CPF and RG is less than 3, displays the label[for="label-custom-field2"] and label[for="label-custom-field3
If Only RG is less than 3, displays the label[for="label-custom-field3"] and hides thelabel[for="label-custom-field2.
If Only CPF is less than 3, displays the label[for="label-custom-field2"] and hides thelabel[for="label-custom-field3.
However, even if the ID is filled when focusing on the email field, the label[for="label-custom-field3 is displayed.
I find that kind of thing easier to do with Angular :D
– Wallace Maxters
@Angular wallacemaxters would be easier?
– Wendell