Lots of images in a site can take much time to load. For each and every request there is another HTTP request and requires more times to wait, causes pages load slowly. Here we have put together a collection of lazy loading plugins for images with options and settings. List of lazy load plugins: Advanced […]
Search: “color of color”
We found 884 results for your search.
jQuery provides various methods to remove elements from DOM i.e. .empty(), .remove() and .detach(). So lets find out the difference between jQuery .empty(), .remove() and .detach() method. .empty(): jQuery .empty() method removes all the child element of the matched element where remove() method removes set of matched elements from DOM. $( “.content” ).empty(); remove(): jQuery […]
Building the Ultimate Landing Page
A good landing page is the cornerstone of online marketing campaigns, and since it is usually the first area users learn about new products and services. It has to be well executed. However, leaving a good first impression is not easy. Everything has to look and feel right. In this brief guide, Toptal Freelance Software […]
Design workflow is tricky thing when it comes to UI and UX. Follow the tricks and tips in this tutorial to deliver better UI/UX on time. Without sacrificing the quality of the user interface and user experience what UX developer does to ensure the product they have built is delivered in a timely manner? The […]
In jQuery, there is an object iterator utility called $.each() as well as a jQuery collection iterator: .each() to run for each matched element. We can return false to stop the loop early. Syntax: $(selector).each(function(index,element)) Basically, $.each() is essentially a drop-in replacement of a traditional for or for-in loop. So, .each is an iterator which […]
Abort Ajax requests using jQuery
Using jQuery abort() you can cancel a running AJAX request forcefully before it ends as this hits several times within a short time period. This is usually in cases where the user might perform an action, based on AJAX request several times within a short time period. For example, There is a auto-complete functionality for […]
window location href and location reload() both redirects a page to a new page but there are some difference to follow. Here is the difference between window.location.href and location.reload: window.location.href is not a method. It is a property which will tell you the current URL location of the browser. Changing the value of the property […]
Using jQuery prop() method you can enable or disable a form element. From jQuery 1.6+ you can use jQuery prop() method. You can enable or disable an elements on a page dynamically with jQuery by setting their attributes accordingly. For jQuery 1.5 and below the .prop() function doesn’t exist, but .attr() method does similar thing. […]
The basic concept of jQuery is to select one or more elements using element ID, Class, Attribute, Compound CSS Selector and do something with them. Let’s see how to select an element with multiple classes. For simple selection you can use following code as below. Selecting Elements by ID: $( “#Id” ); Selecting Elements by […]
There is a significant difference between using jQuery extend() with passing one argument and doing it with two or more arguments. Basically, jQuery.extend() merge the contents of two or more objects into the first object. $.extend() is used to extend any object with additional functions but $.fn.extend() is used to extend the $.fn object, which […]