--- id: bad87fee1348bd9aed308826 title: Target the Parent of an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: '' --- ## 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: يجب عليك استخدام الدالة .parent() لتعديل هذا العنصر. testString: 'assert(code.match(/\.parent\s*\(\s*\)\s*\.css/g), "You should use the .parent() function to modify this element.");' - text: '' testString: 'assert(code.match(/\$\s*?\(\s*?(?:"|")\s*?#target1\s*?(?:"|")\s*?\)\s*?\.parent/gi), "The .parent() method should be called on the #target1 element.");' - text: '' 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 ```