mardi 15 octobre 2019

jQuery - checkbox enable/disable - with DB

I would like to implement the solution of the question: jQuery - checkbox enable/disable in yii2, combined with DB.

If Check Me is stored in a db (as bool/tinyint value 1), and I open the form, the fields that supposed to be disabled, are still going to be enabled, even if I'm adding 'disabled' => $model->CheckMe to it. If I remove the else it's almost OK, but unchecking doesn't re-enable the other checkboxes. Can you please point me to the right direction? Thank you.




Aucun commentaire:

Enregistrer un commentaire