I have a code below that adds a string along with the value of a input select when the page is loaded. The code below somewhat works but there's long unrecognizable string after the = sign.
I also need for the code to load when the page is loaded.
In other word, the url should also includes the appended text when the page is loaded.
Can anyone help?
<script>
$(document).ready(function() {
$("#staff-list").on('change', function() {
location.href = "?account=" + $(this).val;
});
});
</script>
val;toval();.