We have a tourism website that sells Safaris in Africa. On one of the pages we have created a repeater which has a drop down button to expand text for each container. However the code that we have written expands the texts of all of the containers at the same time, what we need it for each individual container to expand text on command. Depending on the page we can have up to 90 cards.
Here is the code we are using at the moment. We just cant figure it out.
–
My function is DropDownFilter();, and the field I am filtering is “artist”.
If you want it to simply CONTAIN the user’s keyword replace “.eq” with “.contains”. If you would like the dropdown to be case specific (nothing shows that is not exactly what the dropdown says) leave .eq.
Adding to @russian-dima 's answer: your problem is “scope”. The button has a $w-name which is the same for every item in the repeater, but you don’t want to address ALL instances. Just the one clicked. The repeater, as @russian-dima said, has a provision for that. In short, look at using $item, not $w.