'Added web6.html'

This commit is contained in:
Arkadiusz Hypki 2024-04-04 12:11:34 +02:00
parent 37aae0a71e
commit ff13f228a7

27
05_html_jQuery/web6.html Normal file
View File

@ -0,0 +1,27 @@
<html>
<body>
<h1 class="mainh">Hi there!</h1>
<h1 class="sech">Hi there! 2222</h1>
<button onclick="$('h1.mainh').addClass('green');">
Make Green
</button>
</body>
<script>
a = 9;
if (a == 19)
alert('abc' + a);
alert($('h1.sech').html());
$('h1.sech').html('NEW header');
$('h1').each(function(index, obj) {
alert(index);
alert($(obj).html());
});
</script>
</html>