function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
barry glasco 4barry glasco 4 

jquery init

lightning on init method 

controller$doInit [jQuery is not defined] anyone know what to do about this?
SaketJoshiSaketJoshi
Have you included the jQuery library in your lightning app? You need to include the library using the  ltng:require tag.
barry glasco 4barry glasco 4
Yes it works in all other methods just no in init
<ltng:require  
 
scripts="{!join(',', $Resource.jquery321, $Resource.stickykit)}"
        afterScriptsLoaded="{!c.doInit}"
        />