title: R Shiny: Is there a way to check if a button is disabled using shinyjs package?
body: <p>Is there a way to check if a download button is disabled using the <code>shinyjs</code> R package? I want to use <code>shinyjs</code> or something similar because they have very easy syntax. This is my package:</p>
  
  <p>server.R:</p>
  
  <pre><code>library(shiny)
  library(shinyjs)
  library(shinyBS)
  
  shinyServer(function(input, output) {
  
    observe({
  
      shinyjs::disable("download1")
  
      if(shinyjs::is.disabled("download1")){ ## This is what I am trying to do
        # Do something
      }
  
    })
  
  })
  </code></pre>
  
  <p>ui.R</p>
  
  <pre><code>shinyUI(fluidPage(
  
      downloadButton("download1")
  
  ))
  </code></pre>