jeudi 24 mars 2016

JS and checkbox: multiple choice

i'm developing this website and how can see i have a table into this page with some filters choices.

What i need, if is it possible, is to make some multiple choices for example to select one checkbox into here

<form class="filter">
                <input type="checkbox" id="zimmer5" class="unchecked"> 5.5
            <br>
                <input type="checkbox" id="zimmer4" class="unchecked"> 4.5
            <br>
                <input type="checkbox" id="zimmer3" class="unchecked"> 3.5
            <br>
                <input type="checkbox" id="zimmer2" class="unchecked"> 2.5
            <br>
</form>

and for example another one from here

<form class="filter">
                <input type="checkbox" id="range1" class="unchecked"> 1200 – 1600
            <br>
                <input type="checkbox" id="range2" class="unchecked"> 1600 – 2000
            <br>
                <input type="checkbox" id="range3" class="unchecked"> 2000 – 2400
            <br>
                <input type="checkbox" id="range4" class="unchecked"> 2400 – 3000
            <br>
                <input type="checkbox" id="range5" class="unchecked"> 3000 – 3400
</form>

and display both results.

Any ideas?




Aucun commentaire:

Enregistrer un commentaire