php - How to refresh div tag content in jquery -


i have 2 files.file1.php , file2.php. created empty div1 tag inside file1.php has file2.php contents. file2.php contains 1 table edit button in each row, inside div2 tag. when click on particular edit button, div2 tag should update , should refresh without refreshing whole page using jquery. please suggest idea...

file1.php

<div id="div1">    //contains file2.php contents(below table) </div> 

file2.php

enter image description here

using ajax call

$("button").click(function(){     $.ajax({url: "demo_test.php", success: function(result){         $("#file2_content").html(result);     }}); }); 

in demo_test.php have target process files


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -