Incorrect seed in 'Use HTML5 to Require a Field' #703

pull/759/head
LumenTeun 2015-05-30 16:41:32 +02:00
parent dbf265bd22
commit d949da5c29
1 changed files with 2 additions and 3 deletions

View File

@ -1650,8 +1650,7 @@
"For example, if you wanted to make a text input field required, you can just add the word \"required\" within your <code>input</code> element use: <code>&#60;input type='text' required&#62;</code>"
],
"tests": [
"assert($('input').prop('required'), 'Your text field should have the property of being required.')",
"assert(new RegExp('cat photo URL').test($('input').prop('placeholder')), 'Your text field should have the placeholder text of \"cat photo URL\".')"
"assert($('input').prop('required'), 'Your text field should have the property of being required.')"
],
"challengeSeed": [
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
@ -1700,7 +1699,7 @@
" <li>other cats</li>",
"</ol>",
"<form action=\"/submit-cat-photo\">",
" <input type='text'>",
" <input type='text' placeholder='cat photo URL'>",
" <button type='submit'>Submit</button>",
"</form>"
],