[jQuery] URL instead of hash
<div dir="ltr">Hi all,
I'm pretty new to jQuery but I'm really loving it so far!
I'm currently having a login form appear when a link is clicked, and that link has the address set to the hash symbol "#".
$('#sign-in-link').click( function () {
$('#sign-in-panel').fadeIn();
});
I was wondering if I could set the link as a real URL (incase the user doesn't have JS enabled), to "/login" perhaps, but instead of the user being taken to that page, the JS kicks in and does the animation instead. If JS isn't enabled they are taken to the page.
I've seen this done on other websites/webapps, so I'm guessing i's possible in jQuery.
Thanks in advance,
Alex
</div>