2011-04-15 43 views
0

我有這樣的代碼,顯示後上傳HTML郵件,但我想更換的消息,而不是積累像郵件的列表:更換的消息並沒有insertAfter

有效圖像 無效圖像 格式無效 成功上傳 ....

$('#userfile').change(function() { 
       $(this).upload('xxx.php', function(res) { 
        $(res).insertAfter(this); 
       }, 'html'); 
      }); 

什麼想法?

感謝

回答

1

使用DIV每一次更換內容

$('#userfile').change(function() { 
      $(this).upload('xxx.php', function(res) { 
       $("#someDivID").html(res); 
      }, 'html'); 
     });