Vote count:
0
For a contact form on a website I want to add two select menus. I want to keep the second select menu hidden and to show when one of the values from the first select menu is clicked. I have managed to make it work for one value, but besides 'Rohda Raalte' I want to add another value.
I have tried several options and searched a lot of topics, but non of the answers helped me solve this specific issue. It is probably quite easy, but my jquery knowlegde is not that great.
Thanks in advance!
<script type="text/javascript">
$(document).ready(function(){
var Privileges = jQuery('#locatie');
var select = this.value;
Privileges.change(function () {
if ($(this).val() == 'Rohda Raalte') {
$('.voetballer').show();
}
else $('.voetballer').hide();
});
});
</script>
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire