Forums Forums Search & Filter Pro Custom Select Dropdowns using JS?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #192544

    Hi there!

    LOVE the plugin, it always comes to my rescue. I have a client that wants to style the dropdowns pretty specifically and I think the only way to achieve this is to use javascript, something akin to this:

    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_custom_select

    But from what I see, S&F uses pretty specific attributes applied to the various Options on the select dropdowns to drive the filtering function.

    What are my options here? Is it possible to style the dropdowns using JS so we can escape the ugly browser dropdown rendering?

    Trevor
    #192559

    I think the advice in this thread would be your best place to start:

    https://support.searchandfilter.com/forums/topic/customizing-select/

    Anonymous
    #192615

    YES! I never realized that’s what a Combobox was, haha! Otherwise I would have went straight for that. Good to know. That did it and many nested classes later I have a fully styled dropdown that meets the client’s spec. Thanks Trevor, you created an amazing tool that just keeps on giving! 🙂

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