Your code looks fine.

You'll need to post a link to a test page that illustrates the problem,
because otherwise it's anybody's guess what might be wrong.

-Mike

> How could i replace a html content inside the div?
> 
> I have 1 div (<div id="elem">ini text</div>) and everytime i 
> click a button, i want to replace the html content inside the 
> #ELEM to new one.
> 
> I try to use:
> 
> jQuery("#button").click(function() {
>       jQuery("#elem").html('<b>my text</b>'); });
> 
> but everytime i click the button, the html is not replaced, 
> resulting something like:
> 
>  <b>my text</b><b>my text</b>
> 
> What is the solution?
> 

Reply via email to