--- id: 5ef9b03c81a63668521804e5 title: Part 60 challengeType: 0 --- ## Description
In order to make a checkbox checked or radio button selected by default, you need to add the `checked` attribute to it. There's no need to set a value to the `checked` attribute. Instead, just add the word `checked` to the `input` element, making sure there is space between it and other attributes. Make the first radio button and the first checkbox selected by default.
## Tests
```yml tests: - text: Make sure there still are two radio buttons and three checkboxes nested in their respective `fieldset` elements. testString: assert( $('input[type="radio"]').length === 2 && $('fieldset > input[type="checkbox"]').length === 3 ); - text: The first radio button is missing the `checked` attribute. testString: assert( $('input[type="radio"]')[0].hasAttribute('checked') ); - text: The second radio button should not have the `checked` attribute. testString: assert( !$('input[type="radio"]')[1].hasAttribute('checked') ); - text: The first checkbox is missing the `checked` attribute. testString: assert( $('input[type="checkbox"]')[0].hasAttribute('checked') ); - text: The second checkbox should not have the `checked` attribute. testString: assert( !$('input[type="checkbox"]')[1].hasAttribute('checked') ); - text: The third checkbox should not have the `checked` attribute. testString: assert( !$('input[type="checkbox"]')[2].hasAttribute('checked') ); ```
## Challenge Seed
```html

CatPhotoApp

Cat Photos

Click here to view more cat photos.

A cute orange cat lying on its back.

Cat Lists

Things cats love:

  • cat nip
  • laser pointers
  • lasagna
A slice of lasagna on a plate.
Cats love lasagna.

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
Five cats looking around a field.
Cats hate other cats.

Cat Form

--fcc-editable-region--
Is your cat an indoor or outdoor cat?
What's your cat's personality?
--fcc-editable-region--
```