All jQuery Tips

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 […]

What happens to event when you clone element using jQuery

jQuery has a method called “clone()“. As the name suggests, it creates a exact copy of the element. The .clone() method performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements and text nodes. As for example, I have defined […]

How to redirect user to another web page using jQuery

Simple jQuery code to redirect user to another web page. To redirect, need to use location object available in JavaScript. Earlier I had posted about Redirect to another page after X seconds wait, Different ways to refresh or reload page using jQuery, Get URL Parameters using jQuery and How to force browser to reload the […]

Show loading icon while actual image is loading using jQuery

Showing loading for ajax content is pretty common thing but suppose there is a quite big image (in size) on your page and it is taking lots of time to load. Would it not be nice to show loading icon for the same? Well, it creates a nice user experience. The user will come to […]

How to get Page Title and URL using jQuery

Yesterday for one of my requirement, I need to get the title and URL of the page. This can be easily done with jQuery. In this post, I will show you a jQuery code snippets which will get the URL and Title of the page using jQuery. $(document).ready(function () { var vhref = $(location).attr('href'); var […]

How to substring in jQuery

Well, Substring is not a unknown term for all of us. Substring means to take out some part from the string. And to do Substring with jQuery, you don’t have to do anything specific with jQuery. It can be done with two Javascript functions substr() and substring() which can be easily used in jQuery. We […]

Responsive Menu
Add more content here...