Hi,
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.
Question:
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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---