Archive for December, 2016

How to Use jQuery’s .blur() Method

jQuery's .blur() method isn't exactly what it sounds like -- the word "blur" in this context should be taken as more of a figurative term than a literal one. The .blur() method doesn't actually apply a blur effect to any elements, it simply refers to when an element was in focus and then becomes out […]
Read the rest of this entry »

How to use jQuery to Prevent Multiple Form Submit for Efficient Forms

Often when a jQuery form is submitted, it can accidentally happen more than once. Depending on the server speed or the internet connection, the request to submit the form can go through slowly, which often leads to the user hitting the submit button more than once because they may think it isn't working. When this […]
Read the rest of this entry »

jQuery Snippet: Enable Submit if Input Field has Value

A cool thing that jQuery allows you to do is enable and disable certain elements based on particular conditions. The following snippet shows you how to enable a submit button that has been disabled if text has been entered into an input field. If the input field has a value, then the form can be […]
Read the rest of this entry »

jQuery 3.0: Fix url.indexOf is Not a Function Error

jQuery 3.0 is out, and if you started working with it and plan to work with this, then you may encounter the error “Uncaught TypeError: url.indexOf is not a function”. This error is related to jQuery 3.0 and it is occurring due to one of the change made to jQuery 3.0. First, let’s see how this […]
Read the rest of this entry »

Set/Get/Delete Cookies with jQuery

There are a lot of plugins you can use to set, get, and delete cookies using jQuery, but there's also a fairly simple code that will achieve all three of those actions without the need for a heavy plugin. Check out the snippets below: Set cookies: function setCookie(name, value, expires, path, domain, secure) { var […]
Read the rest of this entry »

Create Blinking Text Without Using a Plugin

There are tons of jQuery plugins available for any kind of text animation. But the use of jQuery plugin should depend on what are you trying to achieve. One should be very careful while using any jQuery plugin as it comes with some bandwidth. Your website needs to download extra kilo bytes when it's viewed […]
Read the rest of this entry »

Responsive Menu
Add more content here...