How can I get the current url using jquery or, more specifically, get the id at the end of it?
For example, I have product.php # tab-2. I want to get from him only part of "# tab-2".
I tried 'window.location.pathname', but that will return '/product.php'
thank
source
share