freeCodeCamp/guide/arabic/certifications/front-end-libraries/jquery/target-elements-by-id-using.../index.md

16 lines
472 B
Markdown
Raw Normal View History

---
title: Target Elements by id Using jQuery
localeTitle: عناصر الهدف عن طريق id استخدام jQuery
---
## عناصر الهدف عن طريق id استخدام jQuery
## حل
`<script>
$(document).ready(function() {
$("button").addClass("animated bounce");
$(".well").addClass("animated shake");
$("#target3").addClass("fadeOut"); // Target elements with the id "target3" and add the class "fadeOut" to them.
});
</script>
`