I want to add a tag-search to my page. The tags can be given to each
item by clicking a checkbox. The value of the checkboxes is saved in the
table using the check_box_tag.
By editing the tags of an item (refreshing the page) the checkboxes
delete their status - reset theirselves.
How can I check if a box was clicked last time(value saved in the table)
into the blue:
if “value” exists in “table”
document.getElementById(“checkbox1”).checked = true
if “value” doesn’t exist in “table”
document.getElementById(“checkbox1”).checked = false
Thx for your answers