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
kalakala 

Jquery in salesforce

How to use the Jquery in salesforce ..

please give some examples..

sfdcfoxsfdcfox

Same as any other platform, really:

 

<apex:page>
   <apex:includeScript value="{!URLFOR($Resource.jQuery)}" />
   <script type="text/javascript">
// DO jQuery stuff here
   </script>
   <apex:form>
      <!-- form elements here -->
   </apex:form>
</apex:page>

Upload your preferred version of jQuery to Setup > Develop > Static Resources. You could also use a normal script tag and link to a hosted version, such as Google's.