So i have the following line of code:
document.myForm.elements['Last'].style.backgroundColor='#eeeeee';
which changes the input field's background in my form to light gray. However now I need to add this button that when you press on it, it changes everything back to normal.
So I did this:
document.myForm.elements['Last'+i].style.backgroundColor='#ffffff';
which turns the background color back to white, however this isn't exactly what i want. You see the input field is still kind of "deep and shadowy". I just want it to go back to plain old input text field.
So i guess my question is how to you undo a background property?
document.myForm.elements['Last'].style.backgroundColor='#eeeeee';
which changes the input field's background in my form to light gray. However now I need to add this button that when you press on it, it changes everything back to normal.
So I did this:
document.myForm.elements['Last'+i].style.backgroundColor='#ffffff';
which turns the background color back to white, however this isn't exactly what i want. You see the input field is still kind of "deep and shadowy". I just want it to go back to plain old input text field.
So i guess my question is how to you undo a background property?