Forums › Forums › Search & Filter Pro › "is not a function" jQuery errors
- This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by
Anonymous.
-
Anonymous(Private) December 2, 2015 at 7:15 pm #31275
I’ve set up the ajax results and search form code on WordPress but have been experiencing problems with jQuery errors and the form either not appearing or not working when options are toggled.
Earlier today I was receiving this JavaScript error:
TypeError: $inputs.prop is not a function
$inputs.prop(“disabled”, true);I returned a few hours later and now the search form is missing and the error is:
TypeError: $(…).on is not a function
$(document).on(“click”, “.search-filter-reset”, function(e){The page in question is:
http://juliapharo.com/code-test/
The search form is present as a widget on the left but is not showing up.
I’ve tried disabling all other scripts/plug-ins on the page but nothing seems to help.
Please advise.
Thank you.
Ross Moderator(Private) December 2, 2015 at 8:20 pm #31280Hi there
It looks like you are loading an extra version of jQuery in your code.
I can you see you are loading the jQuery v1.4.4 library from your them folder.
This is a very old version of jQuery, and you should normally only load the jQuery that is shipped with WordPress.
Normally you would see a line like:
<script type='text/javascript' src='https://www.site.com/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>But I see in your source you have:
<script type='text/javascript' src='http://site.com/wp-content/themes/rttheme13/js/jquery-1.4.4.min.js?ver=4.3.1'></script>Loading an old jQuery from the theme folder is certainly non standard and I’m not sure why you would even want to do that (you are bound to get compatibility issues with other plugins too).
Thanks
-
AuthorPosts