Skip to content

Instantly share code, notes, and snippets.

@stevenspiel
Forked from shidel-dev/lucky_ajax.md
Created January 29, 2014 22:22
Show Gist options
  • Save stevenspiel/8698424 to your computer and use it in GitHub Desktop.
Save stevenspiel/8698424 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
$('#submit').click(function(){
$.post("/rolls", function(res){
$('#die').html("<img src='" + res.img + "' alt='dice'></img> ");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment