Files
Lipis 5818b277c4 Replace Jquery -> jQuery (#35184)
* Replace Jquery -> jQuery

* JQuery

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update guide/russian/jquery/jquery-html-method/index.md

Co-Authored-By: lipis <lipiridis@gmail.com>

* Update guide/russian/jquery/jquery-html-method/index.md

Co-Authored-By: lipis <lipiridis@gmail.com>
2019-02-14 06:59:19 -08:00

858 B

title, localeTitle
title localeTitle
Target HTML Elements with Selectors Using jQuery Destinar elementos HTML con selectores utilizando jQuery
  • Los selectores jQuery le permiten seleccionar y manipular elementos HTML.
  • Estos selectores comienzan con el signo de dólar y los paréntesis: $ ()
  • Puede "encontrar" (o seleccionar) elementos HTML según su nombre, id, clases, tipos, atributos, valores de atributos y mucho más.

Ejemplo

//You can select all <p> elements on a page like this  =  $("p") 
  $(document).ready(function(){ 
    $("button").click(function(){ 
        $("p").hide(); 
    }); 
 }); 

Solución

<script> 
  $(document).ready(function() { 
      $("button").addClass("animated bounce"); // We are selecting the button elements and adding "animated bounce" class to them. 
  }); 
 </script>