Connecting Tech Pros Worldwide Forums | Help | Site Map

Focus Textbox After Ajax Call Completes

Newbie
 
Join Date: Nov 2008
Posts: 1
#1: Nov 19 '08
hai..this is eswar

i have form with to text fields user name and password.
i have to put validations to those fields and check user name is already exist or not for this check availability user name i use ajax it was giving correct response no problem in that but it will not focus to user name text box area..how can i focus back to text area..

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,648
#2: Nov 19 '08

re: Focus Textbox After Ajax Call Completes


apply the focus() function (javascript) to your text box when finishing your ajax call.

regards
Reply


Similar JavaScript / Ajax / DHTML bytes