--- id: bad87fee1348bd9aedd08835 title: Check Radio Buttons and Checkboxes by Default challengeType: 0 videoUrl: '' localeTitle: تحقق من أزرار الراديو و Checkboxes حسب الافتراضي --- ## Description
يمكنك تعيين مربع اختيار أو زر اختيار ليتم تحديده افتراضيًا باستخدام السمة checked . للقيام بذلك ، قم فقط بإضافة الكلمة "محدد" إلى داخل عنصر الإدخال. على سبيل المثال: <input type="radio" name="test-name" checked>
## Instructions
عيّن أوّل radio buttons وأوّل checkboxes على كلاهما لِيتمّ تحديدها افتراضيًا.
## Tests
```yml tests: - text: يجب تحديد زر الاختيار الأول في النموذج بشكل افتراضي. testString: 'assert($("input[type="radio"]").prop("checked"), "Your first radio button on your form should be checked by default.");' - text: يجب تحديد مربع الاختيار الأول في النموذج بشكل افتراضي. testString: 'assert($("input[type="checkbox"]").prop("checked"), "Your first checkbox on your form should be checked by default.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


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