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

411 B

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

<script>
  $(document).ready(function() {
    $(".well").addClass("animated bounce");
    $(".well").addClass("shake");
  });
</script>