Add Hashtag on Click

Fundamental 90 views
0 Flares 0 Flares ×

Ever wanted to anchor link something generated by AJAX or simple jQuery? This will allow you to add a hashtag to the end of your URL on click.

$('#wrapper a').live('click',function() {       
    window.location = $(this).attr('href') + "#wpf-wrapper";        
Posted in jQuery


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.


Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×