--- id: bad87fee1348bd9aedd08835 title: Marca botones de radio y casillas de verificación por defecto challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/cWk3Qh6' forumTopicId: 301094 dashedName: check-radio-buttons-and-checkboxes-by-default --- # --description-- Puedes hacer que una casilla de verificación o botón de radio se marque por defecto usando el atributo `checked`. Para hacer esto, simplemente agrega la palabra `checked` al interior de un elemento de entrada. Por ejemplo: ```html ``` # --instructions-- Establece el primero de tus botones de radio y la primera de tus casillas de verificación para que ambos sean marcados por defecto. # --hints-- Tu primer botón de radio en tu formulario debe ser marcado por defecto. ```js assert($('input[type="radio"]').prop('checked')); ``` Tu primera casilla de verificación en tu formulario debe ser marcado por defecto. ```js assert($('input[type="checkbox"]').prop('checked')); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```