You can try this:

  url: "test.html",
  cache: false,
  success: function(html){

This code will append the content of test.html file to #results element

You can find more information at jQuery website.


Use this code to send POST data and output result.

var menuId = $("ul.nav").first().attr("id");
var request = $.ajax({
  url: "script.php",
  type: "POST",
  data: {id : menuId},
  dataType: "html"

request.done(function(msg) {
  $("#log").html( msg );
});, textStatus) {
  alert( "Request failed: " + textStatus );