freeCodeCamp/guide/english/certifications/front-end-libraries/jquery/target-elements-by-class-us.../index.md

18 lines
411 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Target Elements by Class Using jQuery
---
## Target Elements by Class Using jQuery
- You can find elements with the jQuery class selector. // $(.className)
- In this example, It allows you to select elements with the class ".well"
## Solution
```javascript
<script>
$(document).ready(function() {
$(".well").addClass("animated bounce");
$(".well").addClass("shake");
});
</script>
```