[Fixed]-Django Language Change Anchors vs. Options

1👍

If you use select options and wrap them in a form with an id. You can submit the form on the select element’s change event.

<form id="my_form">
    <select onchange="submit_my_form()">
    ...
    </select>
</form>


function submit_my_form(){
    document.getElementById("my_form").submit();
}

Leave a comment