HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <body> <h1>jQuery ajax() Method</h1> <p>Sending ajax() request with 'processData: false'.</p> <button>Send ajax Request</button> <script> $(document).ready(function(){ $("button").click(function(){ $.ajax({ url: "/greet-specific.php", method: "GET", data: {myname: "Alex"}, processData: false }) .done(function(data){ alert(data); }); }); }); </script> <p><strong>Note</strong>: In this example, you are not allowing jQuery to convert your object to a string, so the output is 'undefined'.</p> </body> </html>
OUTPUT
×

Save as Private