Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 365 Bytes

Target the same element with multiple jQuery Selectors

The multiple jQuery selectors are: 1. By type: $("button") 2. By class: $(".btn") 3. By id: $("#target1")

<script>
  $(document).ready(function() {
    $("button").addClass("animated");
    $(".btn").addClass("shake");
    $("#target1").addClass("btn-primary");
  });
</script>
Something went wrong with that request. Please try again.