Created
May 15, 2015 18:47
-
-
Save tallesairan/75efd8ff9f0a35ec79de to your computer and use it in GitHub Desktop.
Snippet ajax
This file contains 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
$('.btn-evento a').click(function(event) { | |
event.preventDefault(); | |
$.ajax(this.href, { | |
dataType: 'html', | |
success: function(data) { | |
$('.galeriazoeira').html(data); | |
//$('.galeriazoeira').text('The page has been successfully loaded'); | |
}, | |
error: function() { | |
$('.galeriazoeira').text('ERRO'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment