--- id: 5ef9b03c81a63668521804de title: Part 47 challengeType: 0 --- ## Description
Notice that both radio buttons can be selected at the same time. To make it so selecting one radio button automatically deselects the other, both buttons must have a `name` attribute with the same value. Add the `name` attribute with the value `indoor-outdoor` to both radio buttons.
## Tests
```yml tests: - text: Both radio buttons should still be located between opening and closing `label` element tags. testString: | const labelChildNodes = [ ...document.querySelectorAll('form > label') ].map(node => node.childNodes); assert( labelChildNodes.filter(childNode => childNode[0].nodeName === "INPUT").length === 2 ); - text: Both radio buttons should have a `name` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names. testString: | const radioButtons = [...document.querySelectorAll('input[type="radio"]')]; assert( radioButtons.every(btn => btn.hasAttribute('name')) ); - text: Both radio buttons should have a `name` attribute with the value `indoor-outdoor`. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks. testString: | const radioButtons = [ ...$('input[type="radio"]') ]; assert( radioButtons.every(btn => btn.getAttribute('name').match(/^indoor-outdoor$/)) ); ```
## 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-- --fcc-editable-region--
```