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

前端 未结 17 1336
一生所求
一生所求 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 22:39

    Is #result in the response HTML? Try the following. jQuery will still return an empty object if it doesn't find anything.

    alert(result.length);
    

提交回复
热议问题