18
26
wmi-parprog/03_Declarative_EventDriven/web5.html
2025-03-10 14:05:24 +01:00

48 lines
908 B
HTML

<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<h1 id="headerId">I'm Header</h1>
<h1 class="headerClass secondClass thirdClass">I'm Header but with class</h1>
<table id="id1">
<tr>
<td class="d">d</td>
<td class="e">e</td>
</tr>
</table>
<table id="id2">
<tr>
<td class="d">ddddd</td>
<td class="e">eeee</td>
</tr>
</table>
</body>
<script>
$('#id2 tr:last').after('<tr><td>NEW</td><td>NEW</td></tr>');
a=7;
alert(a);
a='uehfuerh';
alert(a);
alert($('#headerId').html());
$('#headerId').html('New header');
$('.headerClass').html('New header for class');
alert($('#headerId').html());
alert($('table#id2 .e').html());
</script>
</html>