Merge pull request #759 from LumenTeun/lumenteun-703
Incorrect seed in 'Use HTML5 to Require a Field' #703pull/768/head
commit
5d5b1ef5f5
|
@ -1720,8 +1720,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><input type='text' required></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'>",
|
||||
|
@ -1770,7 +1769,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>"
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue