add change value

This commit is contained in:
Valentin CZERYBA 2022-08-23 00:33:37 +02:00
parent 81d3e97c1f
commit 9fb1413f14

View File

@ -114,11 +114,17 @@ document.getElementById("searchUser").addEventListener("keydown", function(ev){
}); });
document.getElementById("inputStatus").addEventListener("change", function(e){ document.getElementById("inputStatus").addEventListener("change", function(e){
alert(e.target.value); var search = document.getElementById("searchUser").value;
var select = document.getElementById("inputRoles");
var roles = select.options[select.selectedIndex].value;
alert(e.target.value+" "+roles+" "+search);
}); });
document.getElementById("inputRoles").addEventListener("change", function(e){ document.getElementById("inputRoles").addEventListener("change", function(e){
alert(e.target.value); var search = document.getElementById("searchUser").value;
var select = document.getElementById("inputStatus");
var status = select.options[select.selectedIndex].value;
alert(e.target.value+" "+status+" "+search);
}) })