Sending data to another page

Sending data to another page

Hey Guys I am trying to send data to another page using ajax, using the POST method.

Is using the the shorthand method $.post() the same as using $.ajax()  based on  what I an trying to accomplish???


Sending data to another page using $.ajax()
  1.        $.ajax({
                type: "POST",
                url:"index.php",
                data:"test=test"       
        });



Sending data to another page using $.post()

  1. $.post("index.php","test=test");