[jQuery] copy values to an array

2008-02-04 Thread Paul Jones
I know the following would work if I wanted to copy the values of *each* to a separate array element. var array1 = new Array() ; $(document).ready(function() { $('li').each(function(i) { array1[i] = this.innerHTML ) }) }) a b c d e f g h

[jQuery] nested function problem?

2007-12-02 Thread Paul Jones
I have managed to place the values of 4 textboxes into an array called array1 (each value is placed into its own array element). I am having problems when I try to place the 1st 2 elements of array1 into the 1st element of array2 ie array2[0] = concatenated value of array1[0] and array1[1] array2[

[jQuery] Autofocus to next textbox

2007-11-26 Thread Paul Jones
I know this has been discussed in the list but I can't seem to get the solutions to work. When the user has typed in 1 character to a textbox I want the focus to move to the next textbox. As I understand it, the textboxes are not siblings or consecutive elements in the Dom (because each textbox i