### Bug description

Hello, 
I want to use functionality from the shinyjs package in an interactive Quarto document, namely conditionally hiding/disabling action buttons. I can see from shinyjs documentation that it should be compatible with markdown documents when specifying the argument `rmd=TRUE` in `shinyjs::useShinyjs(rmd = TRUE)`. However in the simple reprex below the show/hide functionality does not work. I tried the same thing with the disable/enable functions which also did not work. 

### Steps to reproduce
````qmd
---
format: html
server: shiny
---

```{r, include=FALSE}
library(shiny)
library(shinyjs)
```

```{r}
shinyjs::useShinyjs(rmd = TRUE)
shinyjs::hidden(actionButton("HiddenButton", "I was hidden"))
actionButton("ShowButton", "Show Button")
textOutput("text")
```

```{r}
#| context: server
library(shiny)
library(shinyjs)
shinyjs::useShinyjs(rmd = TRUE)

   observeEvent(input$ShowButton, {
     showElement("HiddenButton")
   })
   
   observeEvent(input$HiddenButton, {
     output$text <- renderText("Hidden button activated")
   })

```
````

### Expected behavior

The action button with ID "HiddenButton" should be hidden when the document is rendered and revealed when the button "ShowButton" is clicked. 

### Actual behavior

Button is not hidden

### Your environment

-IDE: RStudio 2023.06.0+421 
-OS: Windows 10 64bit

### Quarto check output

```
$ quarto check
A new release of Deno is available: 1.28.2 → 1.34.3 Run `deno upgrade` to install it.

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.3.330
      Path: C:\Users\bblack\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.9.0
      Path: C:/Program Files/Python39/python.exe
      Jupyter: 4.7.1
      Kernels: ir

      NOTE: No Jupyter kernel for Python found

[>] Checking R installation...........OK
      Version: 4.2.2
      Path: C:/Users/bblack/AppData/Local/Programs/R/R-4.2.2
      LibPaths:
        - C:/Users/bblack/AppData/Local/Programs/R/R-4.2.2/library
      knitr: 1.43
      rmarkdown: 2.21

[>] Checking Knitr engine render......OK
```
2023-06-20T12:01:59Z
blenback
third-party
closed
shinyjs functionality not working? 
https://github.com/quarto-dev/quarto-cli/issues/5984