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: 5efc518e8d6a74d05e68af75 title: Step 56 challengeType: 0 dashedName: step-56 --- # --description-- Aggiungi l'attributo `name` con il valore `personality` all'elemento `input`. Non noterai nulla nel browser, ma questa operazione facilita l'elaborazione del modulo web per un server, soprattutto quando ci sono piĆ¹ caselle di spunta. # --hints-- Assicurati che la casella di spunta sia ancora presente. ```js assert($('input[type="checkbox"]')[0]); ``` L'elemento `input` con la casella di spunta non ha un attributo `name`. Controlla che ci sia uno spazio dopo il nome del tag di apertura. ```js assert($('input[type="checkbox"]')[0].hasAttribute('name')); ``` L'elemento `input` con la casella di spunta dovrebbe avere un attributo `name` con il valore `personality`. Hai omesso il valore o hai un refuso. Ricorda che i valori degli attributi devono essere racchiusi tra virgolette. ```js assert( $('input[type="checkbox"]')[0] .getAttribute('name') .match(/^personality$/) ); ``` # --seed-- ## --seed-contents-- ```html
Click here to view more cat photos.