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
tural sadiktural sadik 

include jquery

How no include JQuery in a lighgtning app
<aura:clientLibrary url="http://jquery.org/latest/jquery.js" type="JS" />
gives error when I try to save it.
Best Answer chosen by tural sadik
Mark SFMark SF
This thread might help you - https://developer.salesforce.com/forums/ForumsMain?id=906F0000000Amaz

All Answers

Mark SFMark SF
This thread might help you - https://developer.salesforce.com/forums/ForumsMain?id=906F0000000Amaz
This was selected as the best answer
KK Ramamoorthy:-)KK Ramamoorthy:-)
You need upload it as static resource and the use it. Unfortunately loading external Java script libraries through external CDN is not supported. Please refer page 124 of this document https://www.salesforce.com/us/developer/docs/lightning/lightning.pdf
Moshe Karmel 9Moshe Karmel 9
There is now a built in component, called "ltng:require", available to load external libraries. You can check it out here: http://docs.releasenotes.salesforce.com/en-us/spring15/release-notes/rn_lightning_load_resources.htm