Skip to content

Instantly share code, notes, and snippets.

@barek2k2
Created February 15, 2013 15:10
Show Gist options
  • Save barek2k2/4960937 to your computer and use it in GitHub Desktop.
Save barek2k2/4960937 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
$(function() {
updateState();
$("#front_stat").submit(function() {
updateState();
return false;
});
});
function updateState(){
$.get($("#front_stat").attr("action"), $("#front_stat").serialize(), function(response){
$("#front_page_stat").html(response)
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment