title: Replace two Shiny-inputs with one Shiny-input of same size
body: <p>I have developed below Shinyapp :</p>
  
  <pre><code>ui &lt;- fluidPage(
    fluidRow(                   
          column(width = 12, checkboxInput(inputId = "Chose", label = "Chose", value = TRUE, width = 170)),
  
  
          column(width = 12, fluidRow(splitLayout(cellWidths =  c(200, 200, 600), 
                      textInput(inputId = "Text1", label = "Text1", value = "30,000", width = 190),
                      sliderInput(inputId = "Slider1", label = "Slider1", min = 1, max = 30, value = 10, step = 0.10, post = "%", width = 310)))
          )
  ))
  server &lt;- function(input, output) {
  
  }
  shinyApp(ui, server)
  </code></pre>
  
  <p>Now, I would like to design my UI in such a way, when user uncheck <code>checkboxInput</code>, then <code>textInput</code> and <code>sliderInput</code> will vanish together, and another <code>sliderInput</code> (with some other ID) will pop-up in the combined place of my original <code>textInput</code> and <code>sliderInput</code>.</p>
  
  <p>I have explored <code>uiOutput</code> which could do the same, however I found that the updation is really 1:1, whereas here my plan is to have 2:1.</p>
  
  <p>Can somebody share a pointer if that is possible to achieve.</p>
  
  <p>Thanks for your time.</p>