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
按钮。单击此按钮会将表单中的数据发送到您使用表单的action
属性指定的URL。这是一个示例提交按钮: <button type="submit">this button submits the form</button>
form
元素的最后一个元素,其类型为submit
,并且“Submit”作为其文本。 submit
的属性type
。
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: