Displaying 2 results from an estimated 2 matches for "select_boxes".
2006 Jun 07
5
check_box:how to update 2 checkboxes dependent on each other
...x1 = True, The user sets CheckBox2 from False to True, now
CheckBox1 should automatically become False.
Scenario 2
CheckBox2 = True, The user sets CheckBox1 from False to True, now
CheckBox2 should automatically become False.
Is there somebody, who knows how to build a function for that?
The select_boxes in my view look like this:
<%= check_box ''account'', ''agriculture'' %>
<%= check_box ''account'', ''vat_duty'' %>
-> agriculture and var_duty are both existing fields in my model.
Thnx Michel Dogger
--
Posted via...
2014 Apr 24
0
How to make optgroup with rails version 3
I am trying to set up a drop down list with a optgroup with active users. i
know the following code is wrong, but would there be any way of doing this
how i have it? right now if you take the raw section and just have
data.collect {|a| [ a.name, a.id ] } instead, it works great for just
showing the names of the users, but i want to add that optgorup. How would
i go about doing that?
=