replace label name with a variable
- $("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:
- whichone="c1pick"
- $("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?