I want to change the focus of the element in client side controller. I have below div element in component.
<div id="globalId" aura>
{!v.body}
</div>
I want to change the focus by using below jQuery function but it is not working.$("#globalId").hide() is working but not the below function.
$("#globalId").focus();
<a name="globalId"/>
. But if the Salesforce 1 app is using the anchor name to switch pages that won't work. Someone who knows more about Salesforce 1 apps will hopefully be able to answer.contenteditable
enabled. Is this an editable div? If not what is the desired end result? If you just want to scroll it into view, that can be done other ways.