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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -