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
você está aqui 381
jQuery UI
Construa um calendário no formulário de aparições
É surpreendente como é fácil colocar um widget do jQuery UI em um formulário HTML.
Vamos começar com o controle datepicker do calendário:
<input type="text" name="sighting_date">
3
Pegue um campo input simples de HTML:
2
Crie uma tag <script> que aponta para o jQuery UI:
4
Acrescente um ID de datepicker na tag <input>:
6
Abra o arquivo em seu navegador favorito e clique no campo input.
5
Crie um arquivo JavaScript e coloque o código a seguir entre as chaves
de $(document) .ready(function(){}:
<input type="text" name="sighting_date" id="datepicker">
<link type="text/css" ...
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