title: Get the name in selectInput widget in R shiny
body: <p>I'm using the selectInput function of shiny package with option groups like this <a href="https://i.stack.imgur.com/WB3QI.png" rel="nofollow noreferrer">Output of the selectInput function</a></p>
  
  <p>In the ui.r file i've something like that:</p>
  
  <pre><code>ListOfItemsWithNames = list(condition = c("KO","WT"),treatment = c("non","oui"))    
  selectInput("Select1_contrast",label="Compare",ListOfItemsWithNames)
  </code></pre>
  
  <p>In the server.R file, when i call input$Select1_contrast I only get the selected value ("oui" for instance).</p>
  
  <p>Is there a way to get both the value an the name of the variable (ie, "oui" and "treatment") ?</p>