i'm working on some sort of poll creation site
i have questions and each question has it's options
this options can be either static as radio buttons or dynamic as radio buttons with text box
and by dynamic i mean the visitor can enter his value for t开发者_C百科his option eg:
question 1:
option 1 radio option 2 radio option 3 radio textbox
i need to bind the radio button value to the dedicated text box value how ?
You can't 'bind' the values of both inputs as they are different ones. The first is a type="radio"
and the second is type="text"
if I understood your question correctly.
Why does that matter to you though? You can use a naming convention that will allow you to analyze which text input belongs to which question number/radio button.
Hope this helps.
精彩评论