Home>

I want to receive and display the stringfy form data, but nothing is displayed.
What is wrong?

$(function () {
  $("# send"). on ('click', function () {
    var ary_data = {};
    ary_data.ID = $('input [name = "id"]'). val ();
    ary_data.product = $('input [name = "product"]'). val ();
    ary_data.color = $('input [name = "color"]'). val ();
    send_data = JSON.stringify (ary_data);
    $.ajax ({
    type: "POST",
    url: ". send.php",
    data: send_data,
    dataType: "json",
    }). done (function (data) {
      $("# result"). text (data);
    }). fail (function (XMLHttpRequest, textStatus, errorThrown) {
      console.log (textStatus);
    });
  });
});
$json_data = json_decode ($send_data);
$ID = $json_data->ID;
print $ID;