Jquery – Show One Paragraph and Hide Anothers

Implemented jQuery Show/Hide functionality. By default, first paragraph will show.

When you will click on Next button then first paragraph will hide and next paragraph will show.

Used jQuery’s eq(index) selector to select a single element or within a looping construct such as each() can select multiple elements.

The each() method iterates over the DOM elements that are part of the jQuery object. Each time the callback runs, it is passed the current loop iteration, beginning from 0.

Demo – Show/Hide Paragraphs

5 Responses to Jquery – Show One Paragraph and Hide Anothers

  1. Louis says:


    thanks for information!!

Leave a Reply

Your email address will not be published. Required fields are marked *