'jQuery example'
This commit is contained in:
parent
b31283df00
commit
23b9202759
26
05_html_jQuery/web2.html
Normal file
26
05_html_jQuery/web2.html
Normal file
@ -0,0 +1,26 @@
|
||||
<html>
|
||||
|
||||
<header>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||
</header>
|
||||
|
||||
<body>
|
||||
|
||||
<h1 class="first">TITLE</h1>
|
||||
<h1 class="second">TITLE SECOND</h1>
|
||||
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
alert('Hello');
|
||||
alert($('h1.second').html());
|
||||
|
||||
$('h1.first').html('CHANGED');
|
||||
|
||||
$( "h1" ).each(function( index ) {
|
||||
alert( index + ": " + $( this ).text() );
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user