Use var game = $(this).parent().attr('data-id');
to get the value from parent div
And remove extra comma from your ajax function near type : "post",
, so the final code should be :
<script type="text/javascript">
$(document).ready(function(){
$(".pickteam").click(function() {
var game = $(this).parent().attr('data-id');
$.ajax
({
url: 'data.php',
data: {game: game},
type: 'post'
});
});
});
</script>