Archive for April, 2012

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 »

Use jQuery.getScript to load external js files

jQuery provides a function called "getScript", which allows to load external Javascript or js file on the fly. The advantage of using $.getScript is that it loads the content on run time, which is far better than including <script> tag in your head section. jQuery getScript load a JavaScript file from the server using a […]
Read the rest of this entry »

Show tooltip on images using jQuery

Tooltip is a very nice feature and it is used for input controls but it would be a nice feature to show tooltip on images/photos to describe the picture and it would make picture more interactive. For example, there is a photo of hotel and you want to show tooltip on various parts of hotel […]
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 »

jQuery Youtube plugins

In this post, I will take you through some plugins developed in jQuery which allows to integrate YouTube videos in your page. And we will also see jQuery YouTube thumbnail plugin which allows to create thumbnail of YouTube videos using jQuery. Also read my already posted articles on jQuery YouTube topic. Create YouTube video thumbnails […]
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 »

Responsive Menu
Add more content here...