Created
February 13, 2009 05:44
-
-
Save bdotdub/63066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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