How to Get the Current Page URL with JQuery

How to Get the Current Page URL with JQuery

Getting the current page URL with JQuery is very much important especially when redirecting or when tracking users’ activities. There are two methods you can use to get the current page URL with jquery: Use $(location).attr(“href”) Use window.location.href   Use $(location).attr(“href”) to get the current page URL You can use the location object and attr…

JQuery HTML Form Validation
|

JQuery HTML Form Validation

Today is yet another interesting JQuery Walk-through; how to validate HTML forms using JavaScript. JavaScript is one of the best methods for validating HTML forms. Everything is handled on the browser’s client-side and no need to bother the server hence minimal bandwidth usage. Instead of validating each input of an HTML element at a time,…