when i use jquery .html or .append to add elements in the DOM the page jumps to that location.
how can i make it not jumping, cause i want my users to be able to click on "save thread to favourites" and it wont jump to "my saved threads" cause then the user has to navigate down in the list with threads again.
EDIT: i have used this:
// save thread
$("a.save_thread").live("click", function(event) {
event.preventDefault();
$.post('controllers/ajaxcalls/threads.php', {method: 'save_thread', thread_id: event.target.id}, function(data) {
}, 'json');
return false;
});
but the return false didnt do anything. and actually, although it doesnt use append() or html() it still jumps to page start.