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
Kennette RodriguezKennette Rodriguez 

How to add jquery library as Static Resource?

Hey,

I wanted to know how to add a jquery library as Static Resource and also how to call it from a VF page?

Thank you very much, 
Regards. 
pconpcon
Once you've added it as a static resource you can make the following call in your Visualforce page:
 
<apex:includeScript value="{!$Resource.jquery}"/>

I would recommend taking a look over this example [1] and see how they do it.  It's a bit overkill for what you are asking, but I know that the examples under Receiving Notifications in a Visualforce Page work and it is well written.

[1] https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Streaming_API