18 lines
454 B
Markdown
18 lines
454 B
Markdown
|
---
|
||
|
title: Target Elements by id Using jQuery
|
||
|
localeTitle: Elementos de destino por id usando jQuery
|
||
|
---
|
||
|
## Elementos de destino por id usando jQuery
|
||
|
|
||
|
## Solución
|
||
|
|
||
|
```javascript
|
||
|
<script>
|
||
|
$(document).ready(function() {
|
||
|
$("button").addClass("animated bounce");
|
||
|
$(".well").addClass("animated shake");
|
||
|
$("#target3").addClass("fadeOut"); // Target elements with the id "target3" and add the class "fadeOut" to them.
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
```
|