Load HTML page dynamically into div with jQuery

后端 未结 7 1431
甜味超标
甜味超标 2020-11-29 02:25

I\'m trying to make it so when I click on a link in a HTML page, it dynamically loads the requested page into a div with jQuery.

How can I do that?

&         


        
7条回答
  •  一生所求
    2020-11-29 02:47

    You can use jQuery's getJSON() or Load(); with the latter, you can reference an existing html file. For more details, see http://www.codeproject.com/Articles/661782/Three-Ways-to-Dynamically-Load-HTML-Content-into-a

提交回复
热议问题