Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
submit
إلى النموذج الخاص بك. يؤدي النقر على هذا الزر إلى إرسال البيانات من النموذج إلى عنوان URL الذي حددته باستخدام سمة action
للنموذج. في ما يلي مثال زر الإرسال: <button type="submit">this button submits the form</button>
form
الخاص بك مع نوع submit
، و "إرسال" كنصه. 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(/Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: