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

前端 未结 5 1119
野趣味
野趣味 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:25

    Use this simple and sobher it also do run time binding as well:

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

提交回复
热议问题