so I've tried this very hard but can't figure it out,
I have a button like this
<button onclick="signUp(document.getElementById('username').value,document.getElementById('email').value)">Sign up</button>
and I want to pass the values it's requesting from some inputs into a variable or variable array so I can handle them like this (example)
var signUp = function(e){
alert(e);
}
(This is just simplified but it proves my point!) Does anyone know how to do this though, I've been having a hard time figuring it out!
Thanks in advance, Magn0053
var signUp = function(e, f) {...signUp([val1, val2])arguments, but you're really complicating it, just use two arguments instead.