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