jQuery ajax load() javascript not executing?

后端 未结 8 1112
执念已碎
执念已碎 2020-11-29 07:49

I\'ve read several posts about this issue but i can\'t solve it.

I am loading an html file into a div. The file i am loading contains a unordered list. This list sho

8条回答
  •  北海茫月
    2020-11-29 08:34

    Ahh, I see... If you just want to load some html use:

    $("selector for div ").load("/path_to_html.html div#main");
    

    Where div#main is the div I want to retrieve in your remote file, but remember this must be the same domain for it to work.

提交回复
热议问题