I am recieving the error code: object required when assigning a value to a varible. I am working on a class assignment and code simular to this is used many times in my document and I can't find the problem. Help
Code:
>var personalInfo=new Object();
>personalInfo.firstName;
>
>personalInfo.firstName=document.getElementById("firstName").value;
Comment