RD mail form. Problem with hide error text in another input field

98 Views Asked by At

Is there anyone who has worked with rd mail form?

JS Fiddle

There is an instruction

e(this).removeClass("error").removeClass("show").addClass("hide").parent().trigger("mfValidator.click").find(t._core.options.validator.applyTo).focus()

that hides the error text when clicked, but I can't figure out how to get to the error text in another field, such as name and hide it if the user clicked on the error text in the email field. Can someone give a solution?

1

There are 1 best solutions below

1
Anand G On

Try remove the error from all input first and then add it to the specific input you clicked. In you case I am seen that the error class has been added to span. Try below

e('span').removeClass("error")

And then add your code

e(this).removeClass("error").removeClass("show").addClass("hide").parent().trigger("mfValidator.click").find(t._core.options.validator.applyTo).focus()

This give it a try!