All jQuery Code Examples

How to filter GridView records using jQuery

Yesterday, I got into a situation where I need to filter the rows/records of the ASP.NET GridView on client side. When I say filter, that means depending on some condition just show only those records which satisfies the condition. And I implemented the same using jQuery so thought of sharing with you. Problem: First take […]
Read the rest of this entry »

Show/Hide li tag elements using jQuery

<ol>,<ul> and <li> html tags are very commonly used tags. But have you faced a situation, where depending on any condition, show some li elements and hide rest or vice versa? In this post, I will show you how to show/hide li tag element based on any criteria or condition using jQuery. Problem: Let's consider […]
Read the rest of this entry »

Strip or remove all white spaces using jQuery

jQuery provides a function "trim" which removes the starting and trailing white spaces but the space (/s) within the string are maintained. So if you want to strip or remove all white spaces using jQuery then you can't use trim function. Then what is the solution? Well, You can use regex to find out the […]
Read the rest of this entry »

How to populate ASP.NET DropDownList using jQuery and Ajax

ASP.NET DropdownList is a common control and now days with jQuery and Ajax technologies asynchronous request makes a better user experience. In this post, you will see that how to populate ASP.NET DropDownList using jQuery and Ajax by making an asynchronous request. First, we need to create a WebMethod in your code behind to get […]
Read the rest of this entry »

How to set Page Title using jQuery

Well sometimes it required to change the title of page dynamically after some event like button click. So in this post, I will show you how to change/set page title using jQuery. You can easily achieve it via single line of code. All you need is to set new value to title attribute of the […]
Read the rest of this entry »

How to check file size before uploading using jQuery

File uploading is a very common feature and It is always a good thing to know that what size of file is end user is uploading at the server. As it is quite possible that you don't want to allow users to upload huge files. So it is better to check the size of file […]
Read the rest of this entry »

Responsive Menu
Add more content here...