Title: Using jQuery along
Last modified: May 29, 2017

---

# Using jQuery along

 *  Resolved [tiagomagnuss](https://wordpress.org/support/users/tiagomagnuss/)
 * (@tiagomagnuss)
 * [9 years ago](https://wordpress.org/support/topic/using-jquery-along/)
 * Hey, I’d like what’s the better and cleanest way to add the possibility to use
   jQuery along with this plugin.
 * Att,
    Tiago Magnus

Viewing 1 replies (of 1 total)

 *  Plugin Author [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * (@diana_burduja)
 * [9 years ago](https://wordpress.org/support/topic/using-jquery-along/#post-9178458)
 * The jQuery library is loaded by default by WordPress, so you don’t need to load
   it again.
 * If you want to add a script that makes use of the jQuery library, the cleanest
   is way described in the comment found in the editor when you click on the ‘Add
   JS Code’:
 *     ```
       /* Add your JavaScript code here.
   
       If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:
   
       jQuery(document).ready(function( $ ){
           // Your code in here 
       });
   
       End of comment */ 
       ```
   
 * As an example, if you want to make an alert with the text found in the H1 tag,
   then the code will be:
 *     ```
       jQuery(document).ready(function( $ ){
           alert($('h1').text());
       });
       ```
   
    -  This reply was modified 9 years ago by [SilkyPress](https://wordpress.org/support/users/diana_burduja/).
    -  This reply was modified 9 years ago by [SilkyPress](https://wordpress.org/support/users/diana_burduja/).

Viewing 1 replies (of 1 total)

The topic ‘Using jQuery along’ is closed to new replies.

 * ![](https://ps.w.org/custom-css-js/assets/icon-128x128.png?rev=1303730)
 * [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [possible](https://wordpress.org/support/topic-tag/possible/)

 * 1 reply
 * 2 participants
 * Last reply from: [SilkyPress](https://wordpress.org/support/users/diana_burduja/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/using-jquery-along/#post-9178458)
 * Status: resolved