All jQuery Code Examples

Validate Date format using jQuery

In this post, we will see how can you validate the user's entered input date's format using jQuery. For demo, I have used "mm/dd/yyyy" or "mm-dd-yyyy" format to be considered as valid format. The date format checking is done using regular expression. So first, let's create a function which validate any input value against the […]
Read the rest of this entry »

How to call jQuery code only before the ASP.NET postback

My colleague has got into a tricky situation where the requirement was to call the specific lines of jQuery code only before the postback. "PostBack is the name given to the process of submitting an ASP.NET page to the server for processing .". Once there is a postback (on click of button) that particular code […]
Read the rest of this entry »

How to handle broken image using jQuery

It is quite possible that sometimes the images on web page don't load properly. There can be many reasons for this problem like path of the image is changed or it is removed or renamed. So in such situation, the browser will display broken image sign. (Vary from browser to browser). To overcome this problem, […]
Read the rest of this entry »

Change cursor to hand on mouseover in GridView using jQuery

In this post, I will show you how to change the cursor to Hand style cursor when user takes mouse on the rows of ASP.NET GridView so that the user will come to know that it is clickable. Also read my ASP.NET Grid View with jQuery series posts. Below jQuery code will change the mouse […]
Read the rest of this entry »

How to remove rows from GridView using jQuery

With continuation with my Grid View series posts, Formatting ASP.NET GridView using jQuery Highlight row on mouseover in GridView using jQuery In this post, I will show you how to remove any row in grid view using jQuery. The task is pretty simple. One need to bind the click event with every tr which has […]
Read the rest of this entry »

Different ways to refresh or reload page using jQuery

In this post, I will show you the different ways using which you can reload or refresh the webpage using jQuery. The first method is nothing to do with jQuery. It is a HTML tag which you need to put in the head section of your page and your page will get refreshed automatically after […]
Read the rest of this entry »

Responsive Menu
Add more content here...