CRM 2011 JS: Set focus on control using javascript in CRM 2011

This is how to Set focus on control using javascript in CRM 2011

 

 

// Set focus on control

Xrm.Page.ui.controls.get("attributename").setFocus();