Sei sulla pagina 1di 1

<head>

Chamada da jQuery
<script type=text/javascript src=jquery.js></script>
<script type=text/javascript>
Evento pronto (executar esta funo quando
$(document).ready(function(){
o documento html for carregado)
Pode ser um
aquivo externo

$(.botao).click(function(){
$(#painel).slideDown(slow);
});
});
</script>
</head>

Chamada, use um selector


Atribui um evento click ao elemento
selecionado anteriormente
Efeito a ser aplicado no #painel
Onde aplicar a funo

Essncia

CSS

$( html )
$( elementos )
$( selector[, contexto] )
$( funo (ready) )
$.extend( prop )
$.fn.extend( prop )
$.noConflict( extreme )
$().data( elemento )
$().data( elemento, nome )
$().data( elemento, nome, valor|valor|valor... )
$().each( mapeador )
$().get()
$().get( pos )
$().index( elemento )
$().length
$().removeData( element )
$().removeData( element, name )
$().size()

css( name )
css( { estilo } )
css( chave, valor )
height()
height( valor )
offset()
width()
width( valor )

Seletores
*
E
E F
E > F
E + F
E ~ F
E,F,G
E[@atributo]
E[@atributo=valor]
E[@atributo^=valor]
E[@atributo$=valor]
E[@atributo*=valor]
E[@atributo~=valor]
E[@atributo!=valor]
E[atributo]
E#id
E.class
E:animated
E:button
E:checkbox
E:checked
E:contains( texto )
E:disabled
E:empty
E:enabled
E:eq( pos )

E,F,G so Tags
E:even
E:file
E:first
E:first-child
E:gt( pos )
E:has( seletor )
E:header
E:hidden
E:image
E:input
E:last
E:last-child
E:lt( pos )
E:not( seletor )
E:nth-child( num|expr )
E:odd
E:only-child
E:parent
E:password
E:radio
E:reset
E:selected
E:submit
E:text
E:visible

Eventos
bind( evento[, dados], funo )
trigger( tipo [, dados] )
triggerHandler( tipo [, dados] )
blur()
mousedown( funo )
blur( funo )
mousemove( funo )
change( funo )
mouseout( funo )
click()
mouseover( funo )
click( funo )
mouseup( funo )
dblclick( funo )
one( tipo[, dados], funo )
error( funo )
ready( funo )
focus()
resize( funo )
focus( funo )
scroll( funo )
hover( sobre , fora ) select()
keydown( funo )
select( funo )
keypress( funo )
submit()
keyup( funo )
submit( funo )
load( funo )
unbind( [tipo][, funo] )
toggle( par, impar )
unload( funo )

Guia rpido

JavaScript
$.browser
$.browser.version
$.each( objeto, mapeador )
$.extend( alvo, prop[, prop(1)..])
$.grep( array, map[, inverso] )
$.map( array, map )
$.merge( primeiro, segundo )
$.trim( string )
$.unique( array )

Manipulao

after( html|elementos )
append( html|elementos )
appendTo( html|elementos )
before( html|elementos )
clone( eventos )
empty()
insertAfter( html|elementos )
insertBefore( html|elementos )
prepend( html|elementos )
prependTo( html|elementos )
remove( [seletor] )
replaceWith( html|elemento )
replaceAll( html|elementos )
wrap( html|elemento )
wrapAll( html|elemento )
wrapInner( html|elemento )

Atributos

addClass( classe )
attr( nome )
attr( {atributos} )
attr( chave, valor|map )
html()
html( valor )
removeAttr( nome )
removeClass( classe )
text()
text( valor )
toggleClass( classe )
val()
val( valor )

Navegao
add( seletor|html|elementos )
andSelf()
children( seletor )
contains( texto )
contents()
end()
filter( seletor|filtro )
find( seletor )
hasClass( class )
not( seletor|elementos )

is( seletor )
map( mapeador )
next( seletor )
nextAll( seletor )
parent( seletor )
parents( seletor )
prev( seletor )
prevAll( seletor )
siblings( seletor )
slice( pos[, pos] )

Animao

animate( { estilo }, [velocidade][, forma][, funo] )


animate( { estilo }, opes )
dequeue()
fadeIn( [velocidade][, funo] )
fadeOut( [velocidade][, funo] )
fadeTo( velocidade, opacidade[, funo] )
hide( [velocidade][, funo] )
queue()
queue( funo|funes )
show( [velocidade][, funo] )
slideDown( [velocidade][, funo] )
slideToggle( [velocidade][, funo] )
slideUp( [velocidade][, funo] )
stop()
toggle()

Ajax

$.ajax( { configs } )
$.ajaxSetup( { configs } )
$.get( url[, paramtros][, funo] )
$.getJSON( url[, paramtros], funo)
$.getScript( url[, funo] )
$.post( url[, paramtros(7)][, funo] )
ajaxComplete( funo )
ajaxError( funo )
ajaxSend( funo )
ajaxStart( funo )
ajaxStop( funo )
ajaxSuccess( funo )
load( url [seletor][, paramtros][, funo] )
serialize()
serializeArray()

Potrebbero piacerti anche