As T.J. said, each ID should be unique. Alternately you can do this the old-fashioned DOM way:
document.yourformname.yourelement.focus() On Dec 29, 11:30 pm, Nomad <[email protected]> wrote: > Diodeus, > > First of all, thanks for the input. I really appreciate it. > > Your solution to #1 works provided that I change the ID of the newly > appended input box. That is a simple task to do in my server.php > script. The problem then becomes that my other scripts that monitor > the input box kepresses no longer works because the ID has changed. My > CSS styles are now also lost. I am thinking there must be a way that I > can keep the ID the same for every appended input box and set focus to > the last input box. I am looking for the solution that may find the > last input box named 'iBox'. I am thinking that somehow I can create > an array of input boxes, get the array count, and then set focus to > the last one. I am just tossing out ideas as I type. Being new to > prototype I will check out the help file for more information. > > I haven't tried solution # 2 yet. I want to find a solution for #1 > first. > > Nomad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
