Chained select with data from one big inline JSON array
Hi everyone
I'm looking to build some sort of chained select menu on a particular page in our intranet system.
But rather than the options for the 2nd select being loaded dynamically through AJAX when the 1st select is changed, I would like to just have the entire dataset stored in a JSON array embedded within the page, in the <script> block for example.
Does anyone know of a good way to implement this?
I actually want to avoid loading the options through AJAX in this particular case, as I'll be loading the full dataset on each pageload within my PHP script.
Cheers, B