<scriptsrc=”jquery-1.6.2.min.js”></script>
<scripttype=”text/javascript”>
<!–jQueryCodewillgounderneaththis–>
$(document).ready(function(){
//Codebetweenherewillonlyrunwhenthedocumentisready
$(“a[name=addRow]”).click(function(){
//Codebetweenherewillonlyrun
//whenthealinkisclickedandhasanameofaddRow
$(“table#myTabletr:last”).after(‘<tr><td>Row4</td></tr>’);
returnfalse;
});
});
</script>
</head>
<body>
<tableid=”myTable”>
<tr><td>Row1</td></tr>
<tr><td>Row2</td></tr>
<tr><td>Row3</td></tr>
</table>
<ahref=”#”name=”addRow”>AddRow</a>
</body>
</html>