I’m using a set of radio buttons, which when selected will transfer the
function isn’t triggered. Is there any error in my code?
Given below is the code.
<% @types.each do |type|%> #@types was declared in the controller
<%= type.name %><input type=“radio” name= “type”
value= <%type.id>onclick= “myfunc();”>
<% end %>
I have no clue on why this is happening and I believe someone can help