jQuery中的Ajax无法正常工作

(All is good now. There was something wrong with my ASP script. Sorry!)

I've wrote the following script, and it's suppose to update the text in a DIV with the classname .displaymode, but it wasn't updated. Did I left out something here?

//On "Saving Payment Status"
$("input[name=savepaymentstats]").click(function(){ 
    //Some Codes
    $.ajax({
        url:"paymentstatsupdate.asp?mode=haha",
        success:function(result) { 
            $(".displaymode").html(result); 
        }
    });
    $(".displaymode").show();   
}); 

Try this:

$(function() {
   $("input[name=savepaymentstats]").click(function(){ 
      $.ajax({url:"paymentstatsupdate.asp?mode=haha",success:function(result) { 
            $(".displaymode").html(result).show(); 
         }
      });
   }); 
});