Open vic778 opened 3 years ago
then select the value according to the index of the array like this :
function getInput() { localStorage.setItem('name', formInputs[0].value); localStorage.setItem('email', formInputs[1].value); }
then select the value according to the index of the array like this :
function getInput() { localStorage.setItem('name', formInputs[0].value); localStorage.setItem('email', formInputs[1].value); }