--- id: bad87fee1348bd9aedd08830 title: Add a Submit Button to a Form challengeType: 0 videoUrl: https://scrimba.com/p/pVMPUv/cp2Nkhz forumTopicId: 16627 localeTitle: Добавить кнопку отправки в форму --- ## Description
Давайте добавим кнопку submit в вашу форму. Нажатие этой кнопки отправит данные из вашей формы по URL-адресу, указанному вами с помощью атрибута формы action . Вот пример кнопки отправки: <button type="submit">this button submits the form</button>
## Instructions
Добавьте кнопку в качестве последнего элемента вашего элемента form с типом submit и «Отправить» в качестве текста.
## Tests
```yml tests: - text: Your form should have a button inside it. testString: assert($("form").children("button").length > 0); - text: Your submit button should have the attribute type set to submit. testString: assert($("button").attr("type") === "submit"); - text: Your submit button should only have the text "Submit". testString: assert($("button").text().match(/^\s*submit\s*$/gi)); - text: Make sure your button element has a closing tag. testString: assert(code.match(/<\/button>/g) && code.match(/ ```