Forum

jQuery: get hash # ...
 
Notifications
Clear all

jQuery: get hash # from url

1 Posty
1 Users
0 Reactions
2,619 Widok
0
Topic starter

in jquery

1 Answer
0
Topic starter
1
2
            var url = $(this).attr('href');
            var hash = url.substring(url.indexOf('#'));  
            var url = $(this).attr('href');
            var hash = url.substring(url.indexOf('#'));  

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: