target
التي يعتقد jQuery أنها يجب أن تهتز.
testString: 'assert($(".target:even").hasClass("animated") && $(".target:even").hasClass("shake"), "All of the target
elements that jQuery considers to be even should shake.");'
- text: 'يجب عليك استخدام :even
selector لتعديل هذه العناصر.'
testString: 'assert(code.match(/\:even/g), "You should use the :even
selector to modify these elements.");'
- text: استخدم jQuery فقط لإضافة هذه الفئات إلى العنصر.
testString: 'assert(code.match(/\$\(".target:even"\)/g) || code.match(/\$\(".target:even"\)/g) || code.match(/\$\(".target"\).filter\(":even"\)/g) || code.match(/\$\(".target"\).filter\(":even"\)/g), "Only use jQuery to add these classes to the element.");'
```