To get the current URL in jQuery you can use the following snippet.
Sample jQuery
$(location).attr('href');
All the Code Snippets and Samples you need
To get the current URL in jQuery you can use the following snippet.
$(location).attr('href');
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to get the current URL in jQuery?: http://t.co/9IAqDH9oYO #js #javascript #jquery #html #php