• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 435
  • Last Modified:

get Element focus / know where the focus is

Hey Experts!
The workflow in my case is the following: I have a input box and a dropdown box. When I input something in the input field a submit takes place and by return from the server the value is shown in the dropdown. I have the problem however that by return the focus in not anymore in my input field. I would like to have though this :)
How can I get this the input in the field back?


  • 2
1 Solution
Say the id of your input field is i1. Now after you perform the submit request, call :-

dlcnetAuthor Commented:
I do ... the problem is that the element does not get it :(
It should. Can you please post the code.
you can setFocus property set with input box or dropdown box after fatching data from server.
or after the value return from server.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now