je ne sais pas si ca peut t'aider mais tu peux créer des div que tu affiches ou caches en fonction de tes choix avec un sript javascript.
JS:
1 2 3 4 5 6 7 8 9 10 11 12
| <script type="text/javascript">
function catsel(sel) {
//if (sel.value=="-1" ) return;
var opt=sel.getElementsByTagName("option" );
for (var i=0; i<opt.length; i++) {
var x=document.getElementById(opt[i].value);
if (x) x.style.display="none";
}
var cat = document.getElementById(sel.value);
if (cat) cat.style.display="block";
}
</script> |
HTML (exemple avec un select):
1 2 3 4 5 6
| <select name="activite" class="form-control" OnChange="catsel(this)">
<option>Pailier</option>
<option value="choix1">choix1</option>
<option value="choix2">choix2</option>
<option value="choix3">choix3</option>
</select> |
et des divs :
<div id="" style="display:none">contenu</div>
voila
Partager