croeltgen Posted October 23, 2010 Share Posted October 23, 2010 Hello,I need to store the values entered by the user in a textfield and I tried to do this with this statement:(...)x=x+1;values[x]=document.getelementById("field").value;(...)This doesn't work of course, as all indexes in values refer to the same object "field".I didnt find a way to store the changing contents from "field" in an array.Any help is much appreciated. Link to comment Share on other sites More sharing options...
[dx] Posted October 23, 2010 Share Posted October 23, 2010 It should work if you use document.getElementById instead document.getelementByIdIt that is problem.. Link to comment Share on other sites More sharing options...
croeltgen Posted October 23, 2010 Author Share Posted October 23, 2010 It should work if you use document.getElementById instead document.getelementByIdIt that is problem..I was misguided in what I believed was the cause to this problem asI had a different problem in my algorithm.thx for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.