Skip to content

Instantly share code, notes, and snippets.

@area73
Last active September 4, 2017 21:58
Show Gist options
  • Save area73/ce7ee7a9815d792268cfb7eaee747a84 to your computer and use it in GitHub Desktop.
Save area73/ce7ee7a9815d792268cfb7eaee747a84 to your computer and use it in GitHub Desktop.
JQUERY
// INICIO de DOCUMENTO
// --------------------
$(document).ready(function() { /* codigo */ });
// ACCESO A ELEMENTODS
// -------------------
$(".nav .submenu > div") /**/ $(this) /**/ $('#id') /**/ $('.clase')
$(this).children('')
$(this).css('cursor','pointer');
$(this).css({'display':'none'});
$('').click(function(ev) { /* codigo */ });
$('').mouseover(function(ev) { /* codigo */ });
$('').hasClass('acciones')
$('').addClass('clase-sin-punto')
$('').removeClass('clase-sin-punto')
$('').each(function(){ /* codigo */ });
// XML
// --------------------------------
// Cargar xml
$.ajax({
type : 'GET',
url : 'http://laurl.com/elxml.xml',
dataType : 'xml',
success : function(data) {
alert(data)
}
});
// Para recuperar elementos
$(this.xml).find('poi').each( function() {}
$(this.xml).find('poi[id=1]').each( function() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment