Attributes of Elements

Attributes of Elements These methods get and set DOM attributes of elements. Adds the specified class(es) to each element in the set of matched elements. Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. Determine whether any of […]

Continue Reading

Simple Load more content with jQuery

Load more content with jQuery

Simple Load more content with jQuery Have you come across any situation where you need to load more content clicking on a load more button. This feature comes in use at situation where you need to show more content in many news/content based websites and this feature helps loading content on clicking load more button. […]

Continue Reading

20 Useful jQuery Methods Part -4

20 Useful jQuery Methods Part -4 16 replaceAll() Description: Replace each target element with the set of matched elements If you’d like to replace DOM elements with other ones, here’s how to do it. We can call replaceAll() on elements we’ve collected or created, passing in a selector for the elements we’d like to replace. […]

Continue Reading

20 Useful jQuery Methods Part -3

20 Useful jQuery Methods Part -3 11. isArray() Description: Determine whether the argument is an array. $.isArray() returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object). Finds out if the parameter is an array.

12 makeArray() Description: Convert an array-like object into a […]

Continue Reading

20 Useful jQuery Methods Part -2

20 Useful jQuery Methods Part -2 6. delay() Description: Set a timer to delay execution of subsequent items in the queue. .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in […]

Continue Reading

20 Useful jQuery Methods Part -1

20 Useful jQuery Methods jQuery Event methods trigger or attach a function to an event handler for the selected elements. jQuery API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a […]

Continue Reading