Thanks for replying - as it turned out, in trying to go with what was
suggested I realised I was doing it all wrong! It's my fault for not
including the whole snippet I was working with (was trying to snip so
I didn't confuse the issue) and I would have normally worked it out if
it wasn't for the lack of sleep I have right now. Just so you know, I
realized I needed to quantify the type of link when selecting it:

$("div a[href^=#]").click(function() {
    var link = $(this).attr("href");
....

Thanks for attempting to make sense of my nonsense :)

Reply via email to