How to use .typewrite effect on an onclick event that is already assigned to changing div content.

How to use .typewrite effect on an onclick event that is already assigned to changing div content.

I have an effect called typewrite that i am applying to any text in div #bubble so i just wrote it like this:

  1. $('#bubble').typewrite({'delay': 35});

It works just fine. Now i also have a link with an onclick event to change the content of #bubble as follows:

  1. <a href="#" onclick="$('#bubble').html('New content');return false;">Change</a>

The problem is the link does not do the typewrite effect when it shows the new content. It shows the new text, but without the effect. How do i apply the effect to the new content as well?