jquery 最简单的ajax 例子

content.html.........

I am from another HTML...

test.html...........

<html>
<head>
<script type="text/javascript" src=".../jquery-1.js"></script>

</head>
<body>
<table>
<tr>
<td id="Load">Button</td>
<td><input value="" size="100" /></td>
</tr>
</table>
<script>
$("#Load").click(function(){
$("#Load").load("content.html");
});
</script>
</body>
</html>

相关推荐