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
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
Post a Comment