Forum Moderators: open
$response = array();
// ...
echo json_encode($response); [edited by: ergophobe at 8:52 pm (utc) on Feb 15, 2016]
[edit reason] Please no URLs to personal sites [/edit]
jQuery.ajax({
data: {letter: jQuery(this).text()},
type: "POST",
dataType: "json",
url: "index.php?option=com_hangman&task=guess&format=raw"
});