--- id: 5ef9b03c81a63668521804e5 title: Part 60 challengeType: 0 dashedName: part-60 --- # --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. # --hints-- Make sure there still are two radio buttons and three checkboxes nested in their respective `fieldset` elements. ```js assert( $('input[type="radio"]').length === 2 && $('fieldset > input[type="checkbox"]').length === 3 ); ``` The first radio button is missing the `checked` attribute. ```js assert($('input[type="radio"]')[0].hasAttribute('checked')); ``` The second radio button should not have the `checked` attribute. ```js assert(!$('input[type="radio"]')[1].hasAttribute('checked')); ``` The first checkbox is missing the `checked` attribute. ```js assert($('input[type="checkbox"]')[0].hasAttribute('checked')); ``` The second checkbox should not have the `checked` attribute. ```js assert(!$('input[type="checkbox"]')[1].hasAttribute('checked')); ``` The third checkbox should not have the `checked` attribute. ```js assert(!$('input[type="checkbox"]')[2].hasAttribute('checked')); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Cat Photos

Click here to view more cat photos.

A cute orange cat lying on its back.

Cat Lists

Things cats love:

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--
```