Re: How to implement chained/related dropdown lists in a page

2014-10-08 Thread Collin Anderson
I haven't done it much, but, yeah, ajax is probably best. Maybe something like might work: $('#id_category').change(function(){ var category = $(this).val() // not sure about this. the point is, get the selected id. $.get('/subcategory-options/?category=' + encodeURIComponent(category),

How to implement chained/related dropdown lists in a page

2014-10-07 Thread Frankline
I am interested in knowing how other developers implement chained dropdown lists that are dependent on one another. As an example, I have a page/form that has two dropdown lists. When I select a value from the first select, I want the second dropdown to be populated by records related to the first