JQuery and frames - $(document).ready doesn't work

后端 未结 12 2328
长发绾君心
长发绾君心 2020-12-14 09:51

I have a page, with some code in js and jQuery and it works very well. But unfortunately, all my site is very very old, and uses frames. So when I loaded my page inside a fr

12条回答
  •  一生所求
    2020-12-14 10:19

    There is no reason for $(document).ready() not to be called. Be sure your page contains an include to jquery.js. Try to do a simple test with an empty HTML page and just an alert to see if there is another problem.

    If you are trying to use this inside the HTML page that contains the frame's definition, keep in mind that there is no document there, you will have to use the

提交回复
热议问题