hey folks,
brand new here. been fiddling with jquery for a little bit now, but
this one has me stumped.

the goal is to de-link the links on a navigation system depending on
what you've clicked on.
but i need a restore function which i'm trying to do with append

the functions work fine without the append, but then i can't restore
the links i've taken off.
and after i do the append the html looks fine, but it doesn't seem to
be part of the DOM anymore.
since it won't respond to the functions anymore.

i've tried so many things and got no where.
i believe it to be NOT appending to the DOM

but again i'm new to the more complex stuff.

thanks in advance for any help.
gary.


[code DOM ready]

// get all the html in the navigation div
var hex = $("#navigation").clone().html();

// my trigger
// all links with an anchor tag inside of navigation
$('#navigation  [EMAIL PROTECTED]"#"]').click(function() {

// set a variable to what i clicked on
var clickedMe = $(this);

// restoring state of navigation div
$('#navigation').empty().append(hex);

// here i do all my style changes using the clickedMe variable
// including replacing the link i clicked on with just text
// omitted for clarity

});

[/code]

Reply via email to