Thursday, October 30, 2008

[jQuery] Re: Simple page navigation problem

Try something like this:

$('.palettebtn').click(function() {
$(this).removeAttr("href");
$('#mainDiv').load("Palette.html");
});

Your bowser send you top of the page because the '#'.

You should try these method in linking:
<a href="javascript:thisIsASuperFunction();">this link do not mutch
else</a>
and do a 'thisIsASuperFunction()' function.
I think is a better way...

Good luck,
Thomas

No comments: