Tell us what’s happening:
Hi,
When the event object is passed it fails, but without that it goes through.
Is it a bug?
Your code so far
[spoiler]
<script>
$(document).ready(function() {
// Only change code below this line.
$("#getMessage").on("click", function(e) {
});
// Only change code above this line.
});
</script>
<div class="container-fluid">
<div class = "row text-center">
<h2>Cat Photo Finder</h2>
</div>
<div class = "row text-center">
<div class = "col-xs-12 well message">
The message will go here
</div>
</div>
<div class = "row text-center">
<div class = "col-xs-12">
<button id = "getMessage" class = "btn btn-primary">
Get Message
</button>
</div>
</div>
</div>
[/spolier]
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/trigger-click-events-with-jquery