Skip to content

Instantly share code, notes, and snippets.

@oscarandreu
Created March 8, 2016 08:12
Show Gist options
  • Select an option

  • Save oscarandreu/31bd9080a5ea9c05010c to your computer and use it in GitHub Desktop.

Select an option

Save oscarandreu/31bd9080a5ea9c05010c to your computer and use it in GitHub Desktop.
Basic Ajax get using jquery
<script src="http://code.jquery.com/jquery-1.12.1.min.js"></script>
<script>
$.get( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
alert( "Load was performed." );
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment