--- id: bad87fee1348bd9aedd08830 title: Add a Submit Button to a Form challengeType: 0 videoUrl: '' localeTitle: إضافة زر إرسال إلى نموذج --- ## Description
دعنا نضيف زر submit إلى النموذج الخاص بك. يؤدي النقر على هذا الزر إلى إرسال البيانات من النموذج إلى عنوان URL الذي حددته باستخدام سمة action للنموذج. في ما يلي مثال زر الإرسال: <button type="submit">this button submits the form</button>
## Instructions
أضف زرًا باعتباره العنصر الأخير في عنصر form الخاص بك مع نوع submit ، و "إرسال" كنصه.
## Tests
```yml tests: - text: يجب أن يحتوي النموذج الخاص بك على زر بداخله. testString: 'assert($("form").children("button").length > 0, "Your form should have a button inside it.");' - text: يجب أن يحتوي زر الإرسال على type السمة الذي تم تعيينه submit . testString: 'assert($("button").attr("type") === "submit", "Your submit button should have the attribute type set to submit.");' - text: يجب أن يحتوي زر الإرسال فقط على النص "إرسال". testString: 'assert($("button").text().match(/^\s*submit\s*$/gi), "Your submit button should only have the text "Submit".");' - text: تأكد من أن عنصر button يحتوي على علامة إغلاق. testString: 'assert(code.match(/<\/button>/g) && code.match(/
## 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 ```