jQuery/AJAX - Load content into a div when button clicked?

前端 未结 5 1122
野趣味
野趣味 2021-02-09 04:47

Would someone be able to help here?

I would like to fill a div e.g.

with content from an e

5条回答
  •  花落未央
    2021-02-09 05:10

    Use jQuery.click and jQuery.load:

    $(document).ready(function(){
        $('.classloader.').click(function(){
            $('#contenthere').load('/includes/about-info.html');
        });
    })
    

提交回复
热议问题