'how to use window.location.replace() multiple times after another onchange() is selected

function sem(){
    let sem = document.getElementById("sender_address").value;
 
    window.location.replace("https://localhost/af/index.php?page=student_filter&sem="+sem);
      
    }
  
function sem1(){
     
    let sem1 = document.getElementById("sender_address1").value;

    window.location.replace("https://localhost/af/index.php?page=student_filter&sem="+$sem+"&&sem1="+sem1);
      
}
  


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source