"is not a function" jQuery errors

Forums › Forums › Search & Filter Pro › "is not a function" jQuery errors

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #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
    #31280

    Hi 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

    Anonymous
    #31281

    Thank you for your help – the search form is working correctly now.

Viewing 3 posts – 1 through 3 (of 3 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.