Set focus on the tab of your choice..

By | May 20, 2009

Let’s consider the scenario where we have a custom tab and on that tab we have called a simple asp page. There is a button in this page clicking which you want to set focus on the another tab in the tabgroup above.

Well, this is quite simmple task. If you will closely observe the source from View Source you will find that for the tab on which the focuse is set the classname is set to TABON while for the another ones which are unselected it is set to TABOFF.

Next, you just need to write simple javascript to find the element with these clssnames and set focus accordingly on the tab of your choice.

If you find this useful, Please drop us a mail on crm@greytrix.com.