Categories
jQuery

jQuery live() Method

The jQuery live method attach one or more event handlers for all elements which match the current selector and specifies a function to run when the events occur. Event handlers attached using live() method works for both current and future elements which match the selector. Syntax of jQuery live(): $(selector).live(event, data, function) Note: The jQuery […]

Categories
jQuery

Why use jQuery on() instead of click()

The on() method attaches one or more event handler functions for one or more events to the selected elements. Event handlers attached using the jQuery on() method will work for both current and future elements i.e. dynamic element created by a script. Note: As of jQuery version 1.7, the jQuery on() method is the new […]

Categories
jQuery

Encode a set of form elements as a string

The serialize() method creates a text string in standard URL-encoded notation by serializing form values. One or more form elements (input, radio, checkbox etc.) can be used as a serializing. You can use this serialized values as a URL query string while making an AJAX request. Syntax: $(selector).serialize() Below we have shown an example for […]

Categories
SEO

5 quick tips to speed up your website load time

Website speed up is one of the ranking method from Google and here we will discuss few tips how to speed up your blog and decrease loading time of your blog. There are so many factors by which we can reduce the page loading time and we need to care about all those steps to […]

Categories
jQuery

jQuery Data Method

jQuery data method gives you the ability to associate arbitrary data with HTML DOM nodes and JavaScript objects. As of jQuery 1.4.3, you have the ability to use this method on JavaScript objects and call for element modification. jQuery.data() method store arbitrary data associated with the specified element or returns the value that was set. […]

Categories
Creative blog SEO

5 Image Optimizer Website For Your Blog

Images can make a lots of traffic to your blog. To make webpage faster you need to optimize image. In this article we will talk about how you can optimize and resize images and that will help your website load more faster. Let’s see some optimize image tools : 1) IMAGE OPTIMIZER Using Image Optimizer, […]

Categories
jQuery

jQuery bind() and unbind() – attaching event handlers

jQuery bind() function is used to attach one or more event handler to elements, while the unbind() is used to removes an existing event handler from elements. As of jQuery version 1.7, jQuery on() method is the preferred method rather than jquery bind and unbind for attaching event handlers for selected elements. bind() : A basic […]

Categories
jQuery

Difference between .closest() and .parents()

Using jQuery closest and parents, you can set or get the first or all ancestor element that matches the selector and traversing up through its ancestors in the DOM tree. The ancestor may be a parent, grandparent, great grandparent, and so on. For example: $(“div”).closest(“p”).css({“color”: “red”}); If it doesn’t match the selector, then it will […]

Categories
jQuery

jQuery scroll to element

Sometimes it is required in our website to move the page scroll to any jQuery/DOM element position for a reason like clicking on anchor move the scroll to div element. Here’s how you can programmatically scroll to any element on the top of the page. If you’re using jQuery then, you don’t need any plugin. […]

Categories
Creative blog SEO

Internal Link Building

You can get benefit by interlinking your blog post. Interlinking means one link to another link within website and it serves many purpose including SEO. You can not notice the importance of interlinking until you use blogging as a source of income. If you don’t interlink, then you hardly get 1 or 2 clicks from […]