From 9fb1413f1409c1e4d419e5e832a8f2ef802c0701 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 23 Aug 2022 00:33:37 +0200 Subject: [PATCH] add change value --- web/js/users.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/js/users.js b/web/js/users.js index 90ad018..b92bd16 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -114,11 +114,17 @@ document.getElementById("searchUser").addEventListener("keydown", function(ev){ }); 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){ - 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); })