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
freshstart forcefreshstart force 

How do we integrate jQuery with VisualForce pages?

How do we integrate jQuery with VisualForce pages?



Thanks in Advance

freshstart force

VRayVRay

Upload the JQuery zip file (containing the jquery.js file(s)) as a Static Resource (Setup -> Develop -> Static Resources).

 

Create a new static resource and give it a name (i.e. JQuery_18)

 

On the visualforce page, add the code below within the <apex:page> tags


 <apex:includeScript value="{!URLFOR($ResourceJQuery_18, '/js/jquery-1.4.2.min.js')}" />

 

Now you can use jquery within your <script> </script> tags.

 

hope that helps.

_Prasu__Prasu_

Check out following link which explains the all the details of integration:

http://www.tehnrd.com/setting-up-jquery-with-salesforce-com/#more-454

 

I hope it will help you.