add new func

This commit is contained in:
danamir
2024-06-09 21:45:04 +03:00
parent 0bcde72bba
commit 40bb5d83f0
6 changed files with 230 additions and 12 deletions

View File

@@ -6,11 +6,8 @@ btnadd.onclick = function (){
fio = document.getElementById("fio").value;
predsed = document.getElementById("predsedatel").checked;
recent = document.getElementById("recentzent").checked;
secretar = document.getElementById("secretar").checked;
console.log(fio);
console.log(predsed);
console.log(recent);
$.ajax(
{
url: "/addperson",
@@ -21,6 +18,7 @@ btnadd.onclick = function (){
'fio': fio,
'predsed': predsed,
'recent': recent,
'secretar': secretar
},
error: function(error){
console.log(error);