jQuery ajax load not a function

前端 未结 8 1522
醉梦人生
醉梦人生 2020-12-29 22:25

This example


相关标签:
8条回答
  • 2020-12-29 23:12

    Please try this

    $(document).ready(function(){
        $("button").click(function(){
           $("#div1").load("demo_test.txt #p1"); 
        });
    });
    
    0 讨论(0)
  • 2020-12-29 23:16

    JQuery format is wrong:

    $(document).ready(function() {
            $('#test').load('doesntmatter');
        });
    

    then add a page name in your directory or such into the load parameters

    • Also make sure your script is the newest functional version
    0 讨论(0)
提交回复
热议问题