--- id: bad87fee1348bd9aed308826 title: Target the Parent of an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: Задайте родительский элемент элемента с помощью jQuery --- ## Description undefined ## Instructions
## Tests
```yml tests: - text: Элемент left-well должен иметь красный фон. testString: 'assert($("#left-well").css("background-color") === "red" || $("#left-well").css("background-color") === "rgb(255, 0, 0)" || $("#left-well").css("background-color").toLowerCase() === "#ff0000" || $("#left-well").css("background-color").toLowerCase() === "#f00", "Your left-well element should have a red background.");' - text: '' testString: 'assert(code.match(/\.parent\s*\(\s*\)\s*\.css/g), "You should use the .parent() function to modify this element.");' - text: 'Метод .parent() должен быть вызван в элементе #target1 .' testString: 'assert(code.match(/\$\s*?\(\s*?(?:"|")\s*?#target1\s*?(?:"|")\s*?\)\s*?\.parent/gi), "The .parent() method should be called on the #target1 element.");' - text: 'Используйте только jQuery, чтобы добавить эти классы к элементу.' testString: 'assert(code.match(/
/g), "Only use jQuery to add these classes to the element.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```