I have two kinds of arrays going on which are
var arrayAdmins = [{"firstName": "Admin", "lastName": "User", "email": "[email protected]","password": "admin"}];
var aBlocked = [{"firstName": "Blocked", "lastName": "User", "email": "[email protected]","password": "blocked"}]
To keep it simple for this question I have a button:
<input type="button"id="switch">
I then do a variable to target the button:
var arraySwitch = document.getElementById('switch');
What I want to do is that when the button is clicked the user from the array called aBlocked
over to arrayAdmins
. So I'm hoping that from a certain admin panel, the admin can remove user from being blocked into being an admin.