wmi-parprog/05_html_jQuery/web3.html
2024-03-25 16:42:49 +01:00

29 lines
472 B
HTML

<html>
<header>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</header>
<script type="text/javascript">
function add() {
$('.todo-table').append('<tr><td class="1"><input type="text" /></td></tr>');
}
</script>
<body>
<h1 class="first">TODO app</h1>
<table class="todo-table">
</table>
<button onclick="add()" >
Add
</button>
</body>
</html>