In this tutorial, we will discuss about how to change paragraph by clicking button using jQuery. In the above example, a button & paragraph is displaying initially .When we click on button , a new paragraph will be displayed and the old one will hidden by this effect.
jqTogglePara.html
<!DOCTYPE html> |
OUTPUT

After clicking "toggle " button :

It will change alternately after every click on" Toggle button".
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.