How to display a JSON response on separate lines using jQuery and PHP

后端 未结 4 957
离开以前
离开以前 2021-01-16 07:54

I am using AJAX to submit a form, and would like to display a summary of the information on the page so that the user can confirm the information before submitting. I am hav

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 08:00

    You need to insert
    tags or insert \n and then put the content in pre tag. Remeber you are injecting this content into an html DOM so html rules still apply :-)

提交回复
热议问题