Currently you are submitting the form using the “standard” HTML submit behavior (even if it’s done in the JS onchange) which will post to the current path.
LiveView provide a phx-change event that works on forms.
Just put phx-change="select" within the attributes of your form tag. Then it will be the LiveView communication that will kick in…
If you’re not aware there is a great course about LiveView offered for free by Pragmatic Studio!
The course is still not yet fully complete right now. Almost the half is done and it’s very great so far! (and without doubts until the end!)