Last active
September 4, 2017 21:58
-
-
Save area73/ce7ee7a9815d792268cfb7eaee747a84 to your computer and use it in GitHub Desktop.
JQUERY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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