Dynamic change radio label based on textbox value

We have one textbox and one add button if i click on button then dynamic radio button is generated my requirement is if i fill textbox like any name (name) and after that create radio button radio button label is same as textbox fill data  after that I changed the textbox value like (name2 ) and again create 2 nd radio button and 2 nd radio button label is  name2 how can I do this      Eg .  One textbox (textbox value  = name1) Then create first radio button (label of radio button is name1) again changed the textbox value (name2) then create second radio button (label of second radio button is name 2) Radio button 1 label= name1 Radio button 2 label= name2 How can i achieve this 
0 answers