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
required within your input element, like this: <input type="text" required>
input a required field, so that your user can't submit the form without completing this field.
Then try to submit the form without inputting any text. See how your HTML5 form notifies you that the field is required?
input element should have the required attribute.
testString: assert($("input").prop("required"), 'Your text input element should have the required attribute.');
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: