I know this question have been asked many times, but I have tried for hours and nothing worked, I\'m a noob with php and ajax so, I might be missing a small thing that I\'m
$.ajax({ url: 'process.php', type:'post', data: {parent: parent}, success: function(data) { $("#ingredients").html(data); } });
in your process.php
$parent = $_POST['parent']; echo($parent);