JavaScript for WordPress › Forums › Vanilla JavaScript › Creating filter function loop › Reply To: Creating filter function loop
March 20, 2018 at 3:25 pm
#43510
Angie Vale
Participant
I only want to show the taxonomy terms beginning with each letter – so when you select A I want to show the taxonomy terms that begin with A, when you select B I want to show the taxonomy terms that begin with B, and so on. It is like an A-Z glossary that you can filter by letter. I have it working but only by creating 26 filter functions for A to Z. I am keen to learn if there is a way of doing this via a loop.