drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

Is it possible to set the checkbox checked by default? #335

Open ghost opened 8 years ago

ghost commented 8 years ago

I would like to have my checkboxes maintain state across page loads should an event of failed form validation occur. Is there a default way to do this or I have to work my way around?

neoteknic commented 8 years ago

Like all form I think you have to temp save your form in ajax on the server side, or you can use HTML5 Web Storage on the client.