Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document)
  2.     .on("focusin focusout mouseover mouseout", ".error .fm-control", function(event) {
  3.       if (event.type === "mouseover" || event.type === "focusin") {
  4.         $(this).parents(".fm-field").addClass("fm-error-open");
  5.       } else if (event.type === "mouseout" || event.type === "focusout") {
  6.         $(this).parents(".fm-field").removeClass("fm-error-open");
  7.       }
  8.     })
  9.     .on("focusin focusout mouseover mouseout", "#recaptcha_response_field", function () {
  10.       if (event.type === "mouseover" || event.type === "focusin") {
  11.         $(this).parents(".error").addClass("fm-error-open");
  12.       } else if (event.type === "mouseout" || event.type === "focusout") {
  13.         $(this).parents(".error").removeClass("fm-error-open");
  14.       }
  15.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement