All jQuery Tips

Date validation for “MM/YYYY” using jQuery

You may done validation for "dd/mm/yyyy" format but today I need to do validation for "MM/YYYY" format. The end user will input the date in textbox and I need to validate the date. Below jQuery code validates the date using regular expression in "MM/YYYY" format only using jQuery. jQuery Code: $(document).ready(function() { $('#txtDate').blur(function() { if(validateDate('txtDate')) […]
Read the rest of this entry »

How to underline particular word using jQuery

Today, I got into a situation where I need to underline a particular word anywhere in one of my div element. One way is to find the element manually and apply the CSS. But there were many occurrences of the word. So I thought of doing with jQuery and in couple of minutes, I was […]
Read the rest of this entry »

How to combine/join arrays using jQuery

In this post, we will see that "how to join or combine arrays using jQuery". Earlier I had posted about jQuery solution to remove item from array, split an array and Find index of element in array, And In this post, find how to combine/join arrays with example. Below jQuery code joins the two arrays […]
Read the rest of this entry »

How to split an array using jQuery

In this post, we will see that "how to split an array using jQuery". Below jQuery code splits the array using jQuery. Earlier I had posted about jQuery solution to remove item from array, combine/join arrays and Find index of element in array, And In this post, find how split an array using jQuery with […]
Read the rest of this entry »

Remove Item from Array using jQuery

Today during my work, I came across a situation where I need to remove items from Array using jQuery. I did it using jQuery and thought of sharing with my you as well. Earlier I had posted about jQuery solution to Find index of element in array, split an array, combine/join arrays and remove duplicate […]
Read the rest of this entry »

How to write IE Version specific jQuery code

Well, making code browser compatible is always a challenge and presence of various browsers makes life difficult for developers. In this post, you will find the way to code for IE specific version. jQuery provides .browser property which returns the browser information. Below jQuery code checks for IE version 7 only. $(document).ready(function(){ if(jQuery.browser.msie && jQuery.browser.version.substring(0, […]
Read the rest of this entry »

Responsive Menu
Add more content here...