Hi guys
I have a form which is sent to the server using AJAX and it has some serverside validating and when a error occur I will alert the user and put focus on the field which gives the error. I send back from server the string (responsetext) which I use split in Javascript to set up. I have after the split e.g. response[0] with the name of the object that did not pass the server test (e.g. wrong password and the name of the password field is passw, response[0]=passw). What do I do to set focus on passw??
Thanks in advance
ThorO
I have a form which is sent to the server using AJAX and it has some serverside validating and when a error occur I will alert the user and put focus on the field which gives the error. I send back from server the string (responsetext) which I use split in Javascript to set up. I have after the split e.g. response[0] with the name of the object that did not pass the server test (e.g. wrong password and the name of the password field is passw, response[0]=passw). What do I do to set focus on passw??
Thanks in advance
ThorO