var newDiv=document.createElement("div");newDiv.id="currentState";newDiv.innerHTML="IN";document.getElementById("stateDiv").appendChild(newDiv);