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
anjisalesforce@gmail.comanjisalesforce@gmail.com 

How to use JQuery in salesforce.com?

Hi all,

 

How to use JQuery in salesforce.com?

 

Cann you please provide any pdf with Examples

 

Thanks for your help.......

Best Answer chosen by Admin (Salesforce Developers) 
Damien_Damien_
<apex:includeScript value="{!$Resource.jQueryv164}" />
<head>
  <script type="text/javascript">
    var j$ = jQuery.noConflict();
  </script>
</head>

 

Make sure you put jQuery in your static resources first.  From here you can use it exactly like you would on any other html page.

 

FYI-This would probably have better suited the Visualforce boards since its not related to Apex.

All Answers

Damien_Damien_
<apex:includeScript value="{!$Resource.jQueryv164}" />
<head>
  <script type="text/javascript">
    var j$ = jQuery.noConflict();
  </script>
</head>

 

Make sure you put jQuery in your static resources first.  From here you can use it exactly like you would on any other html page.

 

FYI-This would probably have better suited the Visualforce boards since its not related to Apex.

This was selected as the best answer
JonathanMClarkeJonathanMClarke

THANK YOU!!!! finally got my flexslider working