Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document)
- .on("focusin focusout mouseover mouseout", ".error .fm-control", function(event) {
- if (event.type === "mouseover" || event.type === "focusin") {
- $(this).parents(".fm-field").addClass("fm-error-open");
- } else if (event.type === "mouseout" || event.type === "focusout") {
- $(this).parents(".fm-field").removeClass("fm-error-open");
- }
- })
- .on("focusin focusout mouseover mouseout", "#recaptcha_response_field", function () {
- if (event.type === "mouseover" || event.type === "focusin") {
- $(this).parents(".error").addClass("fm-error-open");
- } else if (event.type === "mouseout" || event.type === "focusout") {
- $(this).parents(".error").removeClass("fm-error-open");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement