AJAX value sending error

后端 未结 5 1112
清歌不尽
清歌不尽 2021-01-19 05:13

Hi I have problems with the script below. The problem I think lies on data that need to be sent to php via AJAX.

jQuery

$(\'.send\').live(\"click\",          


        
5条回答
  •  天涯浪人
    2021-01-19 05:40

    You need to JSON encode the data being sent.

    It should look something like: '{"id":"' + $(this).attr('id') + '"}'

提交回复
热议问题