Hans Hartmann wrote:
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
the server side? That doesn't appear to make sense.
Thx for your answers