Hello! I am creating a page where users can search up people and have the option of clicking on a 'read more' button in each container of the repeater which expands their bios. I'm trying to code an event where if the user clicks on a 'clear search' button, all the bios in the repeaters collapse, even if only one bio is opened by the user. This is what I have so far:
//button16 is the 'clear search' button
//#text82 is the bio
The above does not work. However if I replace the .collapse() with .expand() it does expand all the bios. How can I get it so that even if only one bio is expanded and the rest are collapsed, the code will still execute the collapse method?
Thank you for taking the time to read my question! (: Please let me know if there is anything that needs to be clarified.