When I click on #demo_3, it simply eliminates the button. However, if inside the replaceWith()
I put a <p> O, hai! </p>
, O, hai! will appear.
$(document).ready(function(){
$("#demo_3").click(function(){
$("#ind_3").replaceWith('<form action="newgoal.php" method="post"><input name="newgoal" type="text"></form>');
});
});