Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created February 13, 2009 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdotdub/63066 to your computer and use it in GitHub Desktop.
Save bdotdub/63066 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>test</title>
<!-- JQUERY -->
<script type="text/javascript" charset="utf-8">
function get_filter_data(event) {
$.get('filter.php', { location: 'NY' }, function(data) {
$('#results')[0].innerHTML = data;
});
}
$(document).ready(function() {
$('#clicker').click(get_filter_data);
});
</script>
</head>
<body>
<a href="#" id="clicker">click me!</a>
<div id="results">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment