- Joined
- Aug 21, 2023
- Messages
- 40
- Reaction score
- 0
Hello. I stuck on a chapter of the book "Learn jQuery 3". The code does well inside dreamweaver but in the browsers(safari, chrome, opera) it does not react at all. When i click on letter A nothig happens. After running the web inspector I got these errors:
This is in short the code for it:
This is in short the code for it:
<div class="letters">
<div class="letter" id="letter-a">
<h3><a href="entries-a.html">A</a></h3>
</div>
</div>
<div id="dictionary">
</div>
...
<script>
$(() => {
$('#letter-a a')
.click((e) => {
e.preventDefault()
$('#dictionary')
.load('a.html');
});
});
</script>