Change the content using AJAX

Hey I am heading and after clicking replace button I will change the text!!!

Although AJAX is used previously but yet it needed to learn...