Tuesday, December 1, 2009

How to set focus to a Tab ?

Sometimes we need the focus should go to a particular attribute.
So we should focus to the particular tab at first(if multitab is there), then focus the attribute.
This simple line will help out.

// Set focus to the tab.
crmForm.all.tabName.click();
// Set focus to the field.
crmForm.all.attribute_id.SetFocus();

No comments:

Post a Comment