Good morning all...
I have a series of <input>s of type text each containg a string of length 4 representing a time, for example '0930'.
I would like the user to be able to change that string using the UP and DOWN arrow keys, so that pressing the UP arrow key would change the string to '0931'...
Tracy:
How would you call a separately defined function?
For example, given the following code...
<script language="JavaScript" type="text/javascript">
var newInput = document.createElement('input');
newInput.id = 'TimeEditInput_' + x + '_' + y + '_OUT';
eval("newInput[\"onblur\"] =...
I have a function that creates and returns an array of <div> each containong an <input> object:
<style type="text/css">
#divContainer { position=absolute; top: 0px; left: 0px; display: block; }
.TimeEditDiv { position:absolute; top: 0px; left: 0px; display: block; }
.TimeEditInput {...
Things are moving along.
For some reason I could only access the value of an <input> using the first way suggested:
var temp = myArray[0][0].getElementsByTagName('input')[0].value;
The other way just would not work.
Now how do I attach an event, say 'onMouseOver' to each <input>?
I've tried...
It works!
The CreateInputs() function works fine! The array of <div> is created and each one is the parent of an <input>. I can set the properties of both elements, parent and child, WITHIN the function.
I can also access/modify the properties of the (parent) <div> objects OUTSIDE the function...
Hey Dan,
I need to create a two-dimension array of <div>, each <div> containing an <input> that will allow the user to enter some text (actually some time value formatted like '0930'). The actual number of <div> required changes according to the user but is known when I want to create them...
Dynamic creation of array of <input> would be great. I already know many of their properties (position, value, etc.). How would you create such an array, and how would you reference them?
Thanx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.