Hans Hartmann wrote: [...]
Question: How can I check if a box was clicked last time(value saved in the table)
Look at the appropriate field in the database. If you use form_for, it does that for free.
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