--- id: bad87fee1348bd9aed808826 title: Disable an Element Using jQuery challengeType: 6 videoUrl: '' localeTitle: Desativar um elemento usando jQuery --- ## Description
Você também pode alterar as propriedades não CSS dos elementos HTML com jQuery. Por exemplo, você pode desativar os botões. Quando você desativa um botão, ele fica cinza e não pode mais ser clicado. jQuery tem uma função chamada .prop() que permite ajustar as propriedades dos elementos. Veja como você desabilitaria todos os botões: $("button").prop("disabled", true); Desativar apenas o botão target1 .
## Instructions
## Tests
```yml tests: - text: Desativar o seu botão target1 . testString: 'assert($("#target1") && $("#target1").prop("disabled") && code.match(/[""]disabled[""],( true|true)/g), "Disable your target1 button.");' - text: Não desabilite nenhum outro botão. testString: 'assert($("#target2") && !$("#target2").prop("disabled"), "Do not disable any other buttons.");' - text: Use apenas o jQuery para adicionar essas classes ao elemento. testString: 'assert(!code.match(/disabled[^<]*>/g), "Only use jQuery to add these classes to the element.");' ```
## Challenge Seed
```html

jQuery Playground

#left-well

#right-well

```
## Solution
```js // solution required ```