Jquery Function Snippets


26 November, 2011   

In jQuery $ is an alias for jQuery, so you can use jQuery() for accessing the jQuery methods. The following code example shows how you can use other libraries with jQuery:

07 March, 2013   

This simple and handy jQuery filter return a single random item from a selection of items. Credit to Waldek Mastykarz

jQuery code example to show content based on select option.

Example shown here how to preload the images with jquery in WordPress.

20 August, 2015   

Basic setup code for jQuery, linking to Google APIs for the jQuery library.

14 February, 2017   

jQuery doesn't really have an .hasAttr() function. You might assume that it does, but alas, it does not.

04 January, 2014   

Example shows how to set Interval and set Timeout in jQuery

Code snippet to remove class after delay in jQuery.

jQuery example code to add image to browser cache

An example code using jQuery Auto Image Scroller

jQuery example code for extract hyperlinks with specific href

How to add jQuery and Snippet to your HTML document

13 May, 2019   

It makes things draggable and with a specified handle optionally

26 January, 2013   

jQuery code example to open link in a new window

22 July, 2013   

It can be useful to be able to resize images using jQuery

24 December, 2012   

jQuery plugin code to image selection

jQuery example to prevent Anchor Links from Loading

13 December, 2015   

Bind onload function to the iFrame and set the size of the iFrame to the iFrames loaded content. In the example jQuery is used.

18 November, 2015   

Bind onload function to the iFrame and set the size of the iFrame to the iFrames loaded content. In the example jQuery is used.

04 February, 2011   

Call Function with Random Timer