Cat Photos
Click here to view more cat photos.

Cat Lists
Things cats love:
- cat nip
- laser pointers
- lasagna

Top 3 things cats hate:
- flea treatment
- thunder
- other cats

--- id: 5ef9b03c81a63668521804e5 title: Step 60 challengeType: 0 dashedName: step-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
Click here to view more cat photos.