title: R shiny: how to give an inputID to an actionButton created via HTML
body: <p>If I create a .htlm file to define an actionButton, how can I give an inputID to the button (in order to do other things based on its value) ? </p>
  
  <p>As you will see in the .html, I try to give it an "id" but it does not work. And I believe that actually giving an inputID should be done in the ui.R file.</p>
  
  <p>Here are my UI, server, and .htlm file:</p>
  
  <p>1/ui:</p>
  
  <pre><code>library(shiny)
  shinyUI(pageWithSidebar(
  headerPanel("test"),
  
  sidebarPanel(),
  
  mainPanel(
  includeHTML("static.html"),
  uiOutput("x")
  )
  ))
  </code></pre>
  
  <p>2/server:</p>
  
  <pre><code>shinyServer(function(input,output){
  output$x&lt;-renderUI(h4(input$button1))            
  })
  </code></pre>
  
  <p>3/static.html</p>
  
  <pre><code>&lt;p&gt; &lt;button class="btn btn-large btn-primary" type="button" id="button1"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt;Large button&lt;/button&gt;
  
  &lt;/p&gt; 
  </code></pre>
  
  <p>Any suggestion would be highly appreciated.</p>
  
  <p>Cheers</p>