Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <aura:component controller="NavigationController" access="GLOBAL">
- <ltng:require scripts="{!$Resource.Jquery224}" afterScriptsLoaded="{!c.scriptsLoaded}" /> ==> Tried latest version and also the old versions. but no luck
- <!-- NavigateAndFocusDetails -->
- <aura:handler name="init" value="{!this}" action="{!c.onCompLoad}"/>
- <aura:attribute name="Contacts" type="Object[]"/>
- <div class="divCls">
- <aura:iteration items="{!v.Contacts}" var="con">
- <div id="{!con.Id}" tabindex='1' >
- <span>{!con.FirstName} {!con.LastName}</span><br/>
- <span>{!con.Account.Name }</span><br/>
- </div>
- </aura:iteration>
- </div>
- ({
- onCompLoad : function(component, event, helper) {
- //get all contacts from apex.
- },
- scriptsLoaded : function(comp,eve,help){
- var divId ='#0036F00002mvuebQAA';
- $(divId).addClass("highlight");
- alert($(divId).length); ==> On f5, this comes as 0 and when cntrl+f5, the value returns 1.
- }
- })
Add Comment
Please, Sign In to add comment