javascript - pass selected option value with an id via URL

one text

Solution:

you need to use onchange event on select box check here

so in your case it may be

onchange="document.location.replace('task.php?status='+this.value+'&id=<?= $row['id'] ?>');"

Source