All jQuery For Beginners

Various reasons and solutions of jQuery is not defined error

"jQuery is not defined" or "$ is not defined" is a very common error that you may face while working with jQuery or if you have started learning jQuery. The error message "jQuery is not defined" clearly says that it can't find the jQuery and you are trying to access jQuery's power. So in this […]
Read the rest of this entry »

How to substring in jQuery

Well, Substring is not a unknown term for all of us. Substring means to take out some part from the string. And to do Substring with jQuery, you don't have to do anything specific with jQuery. It can be done with two Javascript functions substr() and substring() which can be easily used in jQuery. We […]
Read the rest of this entry »

Check if Checkbox is checked using jQuery

Yesterday I needed to find out if checkbox is checked or not using jQuery. I was knowing one way to find out but there are couple of other ways as well to find out if checkbox is checked using jQuery. In this post, you will find all different possible ways. You may also like: Check […]
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 »

Get checkbox status using jQuery

Below single line of code will provide the status of checkbox using jQuery. It checks whether the checked is checked or not using jQuery and will return 1 or 0. var isChecked = $('#chkSelect').attr('checked')?true:false; I have noticed that on many website it is written that 'checked' attribute will return true or false, but this is […]
Read the rest of this entry »

Responsive Menu
Add more content here...