I have a html page containing two textboxes with id name and mobile.
I've created a list and inserted the values into it.But its not taking the name value, its only taking the mobile textbox value. The other part is shown as undefined.
This is the code.
var li = document.createElement("li");
li.textContent = name.value +" , "+mobile.value;
list.appendChild(li);
What is the error ?
name?