mardi 27 novembre 2018

How to pass value through unselected checkbox in django forms?

I Used to pass value through selected checkbox

 <input class="product-active-checkbox" type="checkbox" name="ingredient_id" checked=""
                                   value="" id="">

like wise, I want to pass "0" value through unselected checkbox? Or, Is there any way to identify unselected checkbox in django template?




Aucun commentaire:

Enregistrer un commentaire