Category: Jquery

Auto select menu using jQuery

Hello guys, today we’ll learn about How we can auto select menu using Jquery. The most common functionality in almost all websites is that to show selected menu which was previously clicked. There are many ways to do this, either we can achieve this using server side language or we can use jQuery or javascript(Almost all …

Some Useful Jquery Stuff

Hello World in this post,  I will share Some Useful Jquery Stuff that could be helpful for developing  any web application. When we make a web application, then we have to manage two things (functionality and cool UI). User Interface is very important part for each application, so that each functionality of website could be accessed by user …

How To Get Short Date String In Jquery

Hello world, in this article, I am gonna show you,  How To Get Short Date String In Jquery In this post, I am gonna show you how we can get complete date without concatenating  Date.getYear(),  Date.getMonth(), and Date.getDay() each time. So I will create an extension method in jquery that will return complete date(How simple :)) …

Validate Each Input Type Field For Null Values

During work, my requirement was to Validate Each Input Type Field For Null Values but I also don’t wanted to call one function for each input type field like document.ready(function () { $('#input1').on('onchange', functionName); $('#input2').on('onchange', functionName); $('#input3').on('onchange', functionName); }); Any my another requirement was that I need all input type fields except hidden fields, so in order to …

Location.href not working

The command document.location.href=”www.google.com” is not working in google chrome browser. So your question would be Why Location.href not working? Well its depends how you’re trying to use location.href. Sometimes, we put button inside the form element with action property empty or with ‘javascript:;’ (please take a look)  in order to redirect user one page to another. So in this case …

Prevent JQuery Ajax Request from Caching In IE

In this article I will explain how we can Prevent JQuery Ajax Request from Caching In IE(Internet Explorer). You may noticed that only Internet Explorer by default caches the AJAX request, no other browser, by default, caches AJAX requests… but Internet explorer does and when you make second AJAX request with same parameters what internet explorer does instead creating another …