সম্পাদনা
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.post("/api/document.php", {name: "আরিফ"}, function(data){ $("p").html(data); }); }); }); </script> </head> <body> <button>ডেটা পাঠান</button> <p></p> </body> </html>
পূর্বরূপ