Select2 loading ajax data

Select2 loading ajax data Select2 allows you to use a customizable select box with support for searching, tagging, remote data sets and many other options. Remote data support Using AJAX you can efficiently search large lists of items. Support Support for both modern and legacy browsers is built-in, even including Internet Explorer 8. Now, how […]

Continue Reading

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

Enqueue a Script -WordPress

wp enqueue scripts

wp enqueue scripts WordPress has an enqueuing system for adding local/remote scripts along with styles to prevent conflicts with plug-ins. Since most users run WordPress with a theme and several plugins, developers are advised to use the correct method of loading scripts into WordPress. Descriptions wp_enqueue_scripts is the proper hook to use when enqueuing items […]

Continue Reading

How to make custom Ajax form contact form

ajax contact form

Create an AJAX Contact Form A common feature of many websites is a contact form. Standard contact forms work just fine, but you can make them nicer by using AJAX to submit the form data in the background. In this blog post, you’re going to learn how to create a website contact form that submits […]

Continue Reading