I need to create a search filter using letters of the alphabet. Using Oxygen Builder (Wordpress) #188
aangeloca
started this conversation in
General Discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing a website using the oxygen builder, I'm building a health insurance page where the items will be listed and I want a search filter where it appears from A-Z, selectable, with all the letters. Stops when the user selects a letter to display only the terms starting with the selected character.
I followed this tutorial is in the oxygen builder itself and uses jQuery:
https://www.youtube.com/watch?v=4vcYWXt30b8&t
I managed to create the entire structure and it works as in the video.
But now, I've added the letters of the alphabet from A-Z and I need that when the user selects a letter, he only filters the term that starts with that letter.
Today when the user selects a letter, the search displays every word that has that letter anywhere in the word.
How is my filter now
so, as you can see in the image, my filter is currently like this, it has a search bar and the letters of the alphabet to be selected.
In the example (attached image), I selected the letter 'P' but as a result it returns all results that have the letter 'P' somewhere in the text!
I want, that when selecting the character 'P' for example it displays only the medical agreements beginning with the letter 'P' which are the ones highlighted with green in the example image.
HTML CODE
CSS CODE
JS CODE
Beta Was this translation helpful? Give feedback.
All reactions