Support the ongoing development of Laravel.io →
posted 10 years ago
Forms
Last updated 2 years ago.
0

Add an id to the second select box then use javascript to hide the second box based on the first choice.

var $text = $( "#selectbox1 option:selected" ).text(); //selected option from first box

if $text = 'knipkaart' $( "#selectbox2).hide(); //hide the box

Last updated 2 years ago.
0

Thanks

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.