[Answer]-Redirect to a function in Django from template on select tag using Javascript?

1👍

You can redirect it using only the <select>

<select name="select_path" id="select_path"
    ONCHANGE="location = this.options[this.selectedIndex].value;">
    {% for i in session_info %}
    <option value="{% url app_name:change_user i.id %}">{{ i.session_name }}</option>
    {% endfor %}
</select>

just change the option value, I don’t know the exact url.

Leave a comment