Skip to content

Instantly share code, notes, and snippets.

@piclez
Created October 6, 2008 23:28
Show Gist options
  • Save piclez/15177 to your computer and use it in GitHub Desktop.
Save piclez/15177 to your computer and use it in GitHub Desktop.
<div id="update"></div>
<a href="/test" id="test" rel="#update">test</a>
<script type="text/javascript">
$(document).ready(function(){
$("#test").click(function(){
event.preventDefault();
$(this.rel).load(this.href);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment