click in .html

click in .html

Hi, i'm trying to replace text after click. First time it's ok, but then i want to replace again, and then it doesnt work.

  1. <span class="replace"><button>Click here</button></span>

  1. $('.replace').html("<span class='change'><button>Change</button></span>");

Now it doesnt respond to:
  1. $('.change').html("Replaced again");

What can i do?