jQuery hasClass Method

Read the tutorial on YogiHosting »

1. Check if the Paragraph element has a certain Class

This is a Paragraph

2. Change Color of all Paragraphs that have a Certain Class

This is First Paragraph

This is Second Paragraph

This is Third Paragraph