Dynamic select options php and mysql

后端 未结 1 748
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 05:18

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

1条回答
  •  生来不讨喜
    2020-12-22 05:56

    $.ajax({
              url: 'process.php',
              type:'post',
              data: {parent: parent},
              success: function(data) {
                  $("#ingredients").html(data);
              }
          }); 
    

    in your process.php

    $parent = $_POST['parent'];
    echo($parent);
    

    0 讨论(0)
提交回复
热议问题