The user can select 5 options. Once they select one, they cannot select it again. Currently, I'm just deleting previously used parameters from the list ... so they can only select from previously unused ones. The only thing I donβt like about this is that when a user adds a new record to the database, they may wonder why there are no parameters in the list.
One of my ideas was to leave the previously used options in the list, but cross them out and make them disabled.
Is it possible to disable (and / or add a class) only certain parameters in an element? Simple_form seems to have an option_html helper, but it has not been documented.
source share