-1

EDIT:

How can we leave all the checkboxes checked after I submit and it comes back at the same page ? When I submit, they are "reset" :/

So here is my form code:

<form action="" method="post" id="filtre_form">
<h1 class="text-center">Filtre</h1>
    <div class="col-md-6">
        <h4 class="text-center">Colonne à Afficher</h4>
            <div class="col-md-6">
                <ul>
                    <li>
                        <label class="checkbox">
                            <input type="checkbox" value="model" name="checkbox[]" id="Modele"> Modèle
                        </label>
                    </li>
                    <li>
                        <label class="checkbox">
                            <input type="checkbox" value="date_envoie" name="checkbox[]" id="Date"> Date envoi
                        </label>
                    </li>
                    <li>
                        <label class="checkbox">
                            <input type="checkbox" value="distributeur" name="checkbox[]" id="Distributeur"> Distributeur
                        </label>
                    </li>
Cœur
  • 34,719
  • 24
  • 185
  • 251
Booba__2012
  • 143
  • 1
  • 3
  • 13

1 Answers1

4

Not possible. You cannot modify the checked property via HTML/CSS alone.

techfoobar
  • 63,712
  • 13
  • 108
  • 129