<html>
<head>
<script type='text/javascript' src='js/jquery-1.3.2.js'></script>
<script type='text/javascript'>
$(document).ready(
function() {
$('input#tmpAddAlbum').click(
function($e) {
$e.preventDefault();
$('table tbody')[0].innerHTML +=
"<tr>\n" +
" <td>\n" +
" <input type='text' value='value' size='25' />\n" +
" </td>\n" +
" <td>1980</td>\n" +
"</tr>\n";
}
);
}
);
</script>
</head>
<body>
<h4>C Albums</h4>
<table>
<thead>
<tr>
<th>Title</th>
<th>Year</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type='submit' value='Add Album' id='tmpAddAlbum' />
</body>
</html>
|