Conor
Elite Member
- Nov 7, 2012
- 3,621
- 6,217
This script doesn't work in Wordpress, and I can't figure out why.
Whenever a form input is modified, I would like to check if certain text exists in an element, and hide that element if the text is found.
I get an unhelpful "Uncaught TypeError: undefined is not a function" for some reason.
Code:
jQuery(".form input").change(function() {
$('.content p:contains("Custom Text")').hide();
});
Whenever a form input is modified, I would like to check if certain text exists in an element, and hide that element if the text is found.
I get an unhelpful "Uncaught TypeError: undefined is not a function" for some reason.