Created
January 6, 2016 16:50
-
-
Save bjpeterdelacruz/fe4c390f3225735566ec to your computer and use it in GitHub Desktop.
Replaces text inside a <p> tag
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( | |
$('p.error').each(function() { | |
var text = $(this).text(); | |
if (text.toLowerCase().indexOf("date field must be between") >= 0) { | |
$(this).empty(); | |
$(this).text('The birth date must be prior to January 18, 1995.'); | |
} | |
}); | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment