how to change text paragraph(<p>) on mouse over

nectar picture nectar · Jun 21, 2010 · Viewed 8.8k times · Source

I have some news links, when user moves on that I have to change text of paragraph containing news in details.

Answer

vtambourine picture vtambourine · Jun 21, 2010

It's simple:

$('a.newslink').bind('mouseover', function() {
   $('p#newsdetail').text('new text');
})