-
I'm trying to use this example to create filterable content within a div container: https://stackoverflow.com/questions/71113013/how-can-i-create-a-search-feature-for-an-array-of-divs-with-no-text-content Basically, I have the following code in my quarto markdown.
and each section is wrapped inside a div like this:
However, it doesn't seem to be working. Any ideas why? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Since your question is only HTML/JavaScript, it would be better suited for platforms dedicated to those tools. This being said, you should include your JavaScript using Note on formatting contents with code blocks, you need four backtics, see https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I will try this when I get to my computer. However I should point out that I can get this to work on regular HTML+JS (for exmaple on jsfiddle.net). But it does not work on Quarto. |
Beta Was this translation helpful? Give feedback.
Since your question is only HTML/JavaScript, it would be better suited for platforms dedicated to those tools.
Here your issue has nothing to do with Quarto.
This being said, you should include your JavaScript using
include-after-body
, see https://quarto.org/docs/reference/formats/html.html#includes.Note on formatting contents with code blocks, you need four backtics, see https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us.