jQuery ajax load() javascript not executing?

后端 未结 8 1079
执念已碎
执念已碎 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.

    0 讨论(0)
  • 2020-11-29 08:37

    You need to explicitly call ahover on the unordered list. See the documentaton.

    0 讨论(0)
提交回复
热议问题