jQuery .find() on data from .ajax() call is returning “[object Object]” instead of div

前端 未结 17 1294
一生所求
一生所求 2020-12-07 22:05

Trying to find div element with id=\"result\" in returned data from .ajax() using .find(). Unfortunately, alert(res

17条回答
  •  情歌与酒
    2020-12-07 23:00

    You should add dataType: "html" to the request. Im quite sure you wont be able to search the DOM of the returned html if it doesnt know it is html.

提交回复
热议问题