Auto submit for custom SELECT styling

Forums › Forums › Search & Filter Pro › Auto submit for custom SELECT styling

Tagged: 

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #258330

    Hi,
    I’m using a custom styling for the select elements (hiding the actual select and generating a custom layout which changes the selected value of the original select form field).

    How can I initialize the form correctly to then submit it. Only running “submit()” on the form doesn’t work.

    Best,
    Marc

    Anonymous
    #258334

    It seems to be working with jQuery’s .change(), like:
    jQuery('.sf-input-select').change();

    Trevor
    #258404

    I would normally recommend using Select2 to do that sort of thing (as it is the most commonly used script for WordPress). I can refer you to a post on how to do that. Our form supports Select2 natively (the easiest way is to make a dropdown box a combobox, but there is an alternate method to do it without setting them as comboboxes).

    To submit the form you would use:

    $('.searchandfilter').submit()

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.