--- id: 6145eb5f08a38a0786c7a80c title: Step 32 challengeType: 0 dashedName: step-32 --- # --description-- Se clicchi sugli input radio, potresti notare che entrambi gli input dentro uno stesso fieldset true/false possono essere selezionati contemporaneamente. Raggruppa gli input pertinenti assieme in maniera tale che un solo input di ogni coppia possa essere selezionato in ogni momento. # --hints-- Dovresti dare al primo `input` un attributo `name`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label > input')?.[0]?.name); ``` Dovresti dare al secondo `input` un attributo `name`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label > input')?.[1]?.name); ``` Dovresti dare al terzo `input` un attributo `name`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label > input')?.[2]?.name); ``` Dovresti dare al quarto `input` un attributo `nome`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label > input')?.[3]?.name); ``` Dovresti dare al secondo `input` un attributo `name` corrispondente all'attributo `name` del primo `input`. ```js const i = (n) => document.querySelectorAll('ul.answers-list > li > label > input')?.[n]?.name; assert.equal(i(1), i(0)); ``` Dovresti dare al quarto `input` un attributo `name` corrispondente all'attributo `name` del terzo `input`. ```js const i = (n) => document.querySelectorAll('ul.answers-list > li > label > input')?.[n]?.name; assert.equal(i(3), i(2)); ``` Dovresti dare diversi attributi `name` al primo e al terzo `input`. ```js const i = (n) => document.querySelectorAll('ul.answers-list > li > label > input')?.[n]?.name; assert.notEqual(i(0), i(2)); ``` # --seed-- ## --seed-contents-- ```html