Display PHP data in Jquery AJAX

前端 未结 3 1014
萌比男神i
萌比男神i 2021-01-23 16:37

I have a php page where I display few images with radio buttons. On start two images are pre selected and I merge those and show the combinations. But user can choose a differen

3条回答
  •  日久生厌
    2021-01-23 17:28

    If you want to display the data in a DIV, you can do this:

    html:

    javascript:

    $("#myemptydiv").append(data);
    

    php (if you are in the same file, you have to clear the buffer 1st but you should use another php file for ajax requests instead):

    
    

提交回复
热议问题