function sample(){ $.ajax({ url: "ren.php", dataType: "text", cache: false, success: function(data, textStatus){ var str=data; $("#memo").html(str); }, error: function(xhr, textStatus, errorThrown){} }); }