This example
Please try this
$(document).ready(function(){ $("button").click(function(){ $("#div1").load("demo_test.txt #p1"); }); });