'Added web6.html'
This commit is contained in:
parent
37aae0a71e
commit
ff13f228a7
27
05_html_jQuery/web6.html
Normal file
27
05_html_jQuery/web6.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user