hey guys, the following code works fine... I'm adding a #wpf-wrapper hash to all links that are inside of #wpf-wrapper.
$('#wpf-wrapper a').live('click',function() {
$(this).attr('href', $(this).attr('href') + "#wpf-wrapper");
});
However if there is a link that already has e.g. href="#"
I don't want to add another one to it. Why is the following code not working?
$('#wpf-wrapper a').not('#wpf-wrapper a[href="#"]').live('click',function()
$(this).attr('href', $(this).attr('href') + "#wpf-wrapper");
});
Suddenly none of my links gets this #wpf-wrapper added?