replace label name with a variable

replace label name with a variable


  1. $("label[for='c1pick'] .ui-btn-text").html($("#introdukt").val())

I would like to replace c1pick and #introdukta with variables

Tried the first one the following way:

  1. whichone="c1pick" 
  2. $("label[for=whichone] .ui-btn-text").html($("#introdukt").val())
but it doesnot work.

Is there a way? How to replace #introdukt reference with a variable, too?