Created
January 31, 2014 04:11
-
-
Save andrebautista/8726498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$("small.error").each(function(){ | |
(this).closest("input").addClass("error"); | |
}); | |
}); | |
<input class="string email optional" id="contact_form_email" name="contact_form[email]" size="50" type="email" value="fdsfs"> | |
<small class="error">is invalid</small> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment