javascript - Print the radio button value in next page in ruby -
hi using 2 radio buttons:
<input type="radio" id="radio0" name="answer[16]" value="domestic" checked> <label for="radio0">domestic</label> <input type="radio" id="radio1" name="answer[16]" value="international"> <label for="radio1">international</label>
i want print these selected radio button value in next page :
usage of documents: domestic
any idea how implement in ruby?
i have seen eg in stackoverflow. getting little bit confused how implement in code: discussion of stackoverflow below: to radio button value in ruby on rails
<div id = "option-1"> <%= radio_button_tag "answer", "#{@ans.id}ans1"%><%= @ans.ans1 %> </div> <%= f.radio_button :answer, "#{@ans.id}ans1" %>
Comments
Post a Comment