First Draft
First Draft of the Example Files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>The DOM: attr</title>
|
||||
<script src='jquery-3.5.1.min.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Example Document</h2>
|
||||
<p><a id='link' href='http://google.com' title='Google'>Visit Google</a></p>
|
||||
<script>
|
||||
$('#link').text('Visit Yahoo!')
|
||||
$('#link').attr( { href :'http://yahoo.com', title:'Yahoo!' } )
|
||||
alert('The new HTML is:\n' + $('p').html())
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user