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),
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
2 matches
Mail list logo