Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dynamic Dropdowns Reply To: Dynamic Dropdowns

#241830
Paulie_D
Member

Where are you now….do you have a demo?

I’m no JS/JQ expert (barely a beginner) but it seesm to me you need to wrap in another function.

Or perhaps even separate them out.

$("#first-choice").change(function() {
   $("#second-choice").load("textdata/" + $(this).val() + ".txt");
});

$("#second-choice").change(function() {
   $("#third-choice").load("textdata/" + $(this).val() + ".txt");
});