I’m struggling to understand the implementation of JS inside of a collection list and specifically inside of each collection item.
My end goal is to exact the address field from each CMS item so I can create an array with them, and eventually place all the addresses as markers on a google map.
Before I can get to that I’m simply trying to implement some jQuery inside an embed which is inside a collection item, however, it’s not working despite my best efforts.
here is the code I’m using inside each collection item: (to simply change a text field)
Hey Will, we can’t see the code in your post, put 3 backticks before, and 3 after to create a code block in the forum posts.
In general jquery works best in the </body> code area, because the jQuery library reference is at the end of your page. Trying to use jQuery inside a collection list will probably generate errors.