Files
freeCodeCamp/guide/russian/miscellaneous/change-the-css-of-an-element-using-jquery/index.md
2018-10-16 21:32:40 +05:30

16 lines
523 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Change the CSS of an Element Using jQuery
localeTitle: Изменение CSS элемента с помощью jQuery
---
Мы также можем изменить CSS элемента HTML непосредственно с помощью jQuery.
Query имеет функцию под названием `.css()` которая позволяет вам изменять CSS элемента.
```
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
});
</script>
```