We help IT Professionals succeed at work.

Set focus of TextBox when AccordionPane is opened

DerekWatling
DerekWatling asked
on
1,249 Views
Last Modified: 2010-05-18
I have set up a page with an Accordion control and 4 AccordionPanes each containing a Panel with a form for searching with a TextBox and various other options. Everything is working fine but I would like to set the focus of the TextBox in the selected AccordionPane when it is opened. I presume this should be done client side but can't see how to do it.
Comment
Watch Question

hi,

y cant u call a javascript for setting focus
when the panel is loaded


b u d d h a

Author

Commented:
To clarify: I want to reset to focus each time a different AccordionPane is selected but can't work out how to detect this event.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I don't fully understand how this is working, but it does.

Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.