First Draft

First Draft of the Example Files
This commit is contained in:
RobinNixon
2020-12-10 13:21:38 +00:00
parent 77a7b57c4f
commit 0335342e00
1127 changed files with 46959 additions and 56 deletions
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Using is</title>
<script src='jquery-3.5.1.min.js'></script>
</head>
<body>
<div><button>Button in a div</button></div>
<div><button>Button in a div</button></div>
<span><button>Button in a span</button></span>
<div><button>Button in a div</button></div>
<span><button>Button in a span</button></span>
<p id='info'></p>
<script>
$('button').click(function()
{
var elem = ''
if ($(this).parent().is('div')) elem = 'div'
else elem = 'span'
$('#info').html('You clicked a ' + elem)
})
</script>
</body>
</html>