Skip to Main Content
Use A Cabeça jQuery
book

Use A Cabeça jQuery

by Ryan Benedetti, Ronan Cranley
June 2013
Beginner to intermediate content levelBeginner to intermediate
537 pages
17h 42m
Portuguese (Portugal, Brazil)
Alta Books
Content preview from Use A Cabeça jQuery
6 Capítulo 1
aponte seu lápis solução
O script abaixo muda dinamicamente uma página web.
Leia cada linha e pense no que ele pode fazer com base
no que você já sabe sobre HTML e CSS. Depois, escreva
o que você acha que o código faz. Se não tiver certeza do
que uma linha faz, é perfeitamente aceitável que você
opine. Fizemos uma para você.
<script>
$(document).ready(function(){
$("button").click(function(){
$("h1").hide("slow");
$("h2").show("fast");
$("img").slideUp();
});
});
</script>
Quando o documento da página web estiver pronto,
faça o que está listado abaixo.
Quando qualquer elemento button for clicado, faça isso.
Faça todos elementos h1 desaparec ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

USE A CABEÇA! PROGRAMAÇÃO JAVASCRIPT

USE A CABEÇA! PROGRAMAÇÃO JAVASCRIPT

Eric Freeman, Elisabeth Robson
Use a Cabeça! HTML e CSS

Use a Cabeça! HTML e CSS

Elisabeth Robson, Eric Freeman
Use A Cabeça! Programação Em HTML5

Use A Cabeça! Programação Em HTML5

Eric Freeman, Elisabeth Robson

Publisher Resources

ISBN: 9788576087571