All jQuery Tips

Open link in new tab or new popup window using jQuery

Well, do you know that opening a link in new tab and open link in a new popup window are 2 different things? And to implement both the functionality, One need to use different codes. I had never given this a thought before writing this article but I realized that these are 2 different things […]

How to change image opacity on mouseover using jQuery

Images are undoubtedly the most attractive element of the page. And images with some cool effects make them more powerful and attractive. One of the effect on the image, is to make it transparent and play with transparency with mouse gestures. So in this post, I will show you how to change image opacity on […]

How to get querystring value using jQuery

In this post, I will show you how to get the QueryString variable value using jQuery. I have created a function which returns value of any querystring variable. Earlier I had posted about Get Page Title and URL using jQuery, Get previous page URL using jQuery, Check for ‘#’ hash in URL using jQuery, Style […]

How to highlight label associated with text box using jQuery

jQuery is really a great library to provide various effects with ease. In this post, I will show you how to highlight the label associated with a particular textbox when it receives focus and remove highlighting when focus goes out using jQuery. Before moving ahead, It is important to know that there is a tag […]

Add default option to ASP.NET Dropdown list using jQuery

Sometimes It is required to add default option like “Please Select” or “Select” in Dropdown list. Below is a simple jQuery code to “add default option to ASP.NET Dropdown list using jQuery“. //Code Starts $(document).ready(function(){ var defaultOpt = "<option selected='selected' value='-1'>--Select--</option>" $('#<%=ddlCountry.ClientID %>').prepend(defaultOpt); }) //Code Ends And if you want to add default option to […]

Combine all TextBox values to a Hidden field using jQuery

One of my colleague asked me “He wants to add all the textbox value present on the page in a hidden field using jQuery and that hidden field value will be submitted to form using Ajax”. He was knowing how to submit the values using Ajax but he was facing problem while adding all textbox […]

Responsive Menu
Add more content here...