var request = $.ajax({ url: "script.php", method: "POST", data: { id : menuId }, dataType: "html" });