All jQuery Code Examples

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 »

How to Reset dropdown using jQuery

In this post, you will find various ways to reset the dropdown using jQuery. These are one line of jQuery code, which can reset the dropdown. Below code will find the first item in the list and make it selected. $('#DropDownList1').find('option:first').attr('selected', 'selected'); Below code will find the item with value o and selects it. If […]
Read the rest of this entry »

Drag and Drop GridView rows using jQuery

With continuation with my Grid View series posts, In this post, I will show you how to rearrange the grid view rows via dragging and dropping rows using jQuery. For your information, GridView is rendered as table format. So to support drag and drop functionality to table rows, we will use plugin named "TableDnD". This […]
Read the rest of this entry »

How to remove GridView columns using jQuery

With continuation with my Grid View series posts, In this post, I will show you how to remove columns in grid view on clicking the column header using jQuery. To achieve this, one need to bind the click event on the header columns of the GridView. For your information, GridView is rendered as table > […]
Read the rest of this entry »

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 »

Responsive Menu
Add more content here...