When attempting to access the \'.box\' class of the $container, using (this) inside of the ajax call doesn\'t work.
$container.on( \"click\",
Just add this to your $.ajax call...
$.ajax
context: this,
...and it'll work.
$.ajax({ context: this, // <-- right here url:'scripts/php/fetchResultsData.php', data: {action:value}, type: 'post', dataType: 'json', success: function(data) { // ...