https://htmx.org logo
Hi guys, i wanna make chained dropdown with 3+ ele...
# 🔥-django-htmx
f
Hi guys, i wanna make chained dropdown with 3+ elements with python, django and htmx without javascript, like 'city' -> 'town' -> 'street'. Well actually i did that, but when i pick the 'street' and then change the 'city' only 'city' and 'town' change. if i want to change the 'street' i have to change the 'town' or it will stay the same. I kinda understand why, cus 'city' triggers get request to the 'town' on change and 'town' triggers request to the 'street'. But i want it to work like if i change the 'town' every field should go to default and if i change 'town' then 'street' should go to default. Do you guys know how to connect those fields properly or maybe can recommend a good tutorial?