I've been experiencing some trouble trying to attach a listener to a button I made with Bootstrap.
<button type="button" id="buttonone" class="btn btn-default btn-lg good">
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>'
</button>
<script>
$(document).ready(function(){
$('#buttonone').on('click', function(){
console.log("FIRED AWAY")
})
})
</script>
For some reason, the message doesn't show up in my console as expected.
Moreover, I'm facing issues when trying to style my button using
.btn {
}
Why is it that neither my bootstrap component responds to the event listener nor the CSS editing?