Skip to content
Advertisement

Make option HTML tag set something in the url – Django

I am trying to do something, but I don’t know if it’s acutally possible…

Basically I’m trying to pass information in the url… (something like this)

JavaScript

but instead of using a text input I would like the user to simply click an option in a dropdown menu… (like this)

JavaScript

Is it possible to do so? Hopefully I’ve explained myself decently lol

Advertisement

Answer

You can do this with javascript and onchange attribute:

JavaScript
Advertisement