It is not quite clear what you are trying to do. But it seems like you are reinventing a square wheel :) Did you try some ready solutions like http://github.com/mbleigh/acts-as-taggable-on/ ?
Regards -- Vitaly Kushner http://twitter.com/vkushner Founder, Astrails Ltd. http://astrails.com Check out our blog: http://blog.astrails.com On Jul 7, 1:20 pm, Hans Hartmann <[email protected]> wrote: > 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 viahttp://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 -~----------~----~----~----~------~----~------~--~---

