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.
- <span class="replace"><button>Click here</button></span>
- $('.replace').html("<span class='change'><button>Change</button></span>");
Now it doesnt respond to:
- $('.change').html("Replaced again");
What can i do?