[jQuery] page jump to the top when I add element
Hi :)
I enjoy jQuery :) but sometimes I have some problems. Could you help
me with one:
I add elements to page (on click)
jQuery("#div").append('Tekst:'+tekst+
')
but when page have a lot of content (browser scrollbar is visible) and
page is scrolled to bottom and I click some link, Tekst:'+tekst+</
p> is added to page but is one wrong thing, page is scrolling to the
top - it's not good because user must scroll page down if he want add
Tekst:'+tekst+
more than once.
So my question is: How can I avoid "page jumping to top" ?
Please help me :)