It seems like my JQuery.click event is not functioning as expected when paired with the corresponding button. Any ideas on what might be causing this issue?
Here's the HTML CODE snippet:
<button id="jan7" type="button" class="btn btn-dark btn-sm">Let's Check!</button>
And the JS/JQuery CODE I'm using:
<script>
$(document).ready(function() {
$("jan7").click(function(){
alert("The button was clicked");
});
});
</script>
Below are the scripts being called in order on my HTML page:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
<script src="countDown.js"></script>
Do you see any obvious mistakes or issues that could be causing the problem?