Currently, I have a button on my webpage that is triggering a bootstrap modal to open, but I am not ready for that yet. Here is the HTML code for the button:
<div class='bookmarkButtonDiv'>
<button type='button' class="btn btn-primary" data-toggle='modal' data-target='#newModal' id="IBtn">Bookmark</button>
</div>
Here is the code for my modal:
<div class="modal fade" id="newModal" role="dialog">
<!-- some code to populate the modal -->
In my JavaScript, I have:
jQuery.noConflict();
(function($) {
$(function () {
$('#IBtn').click(function (e) {
console.log('button clicked');
});
});
})(jQuery);
However, when clicking the button, it opens the bootstrap modal and logs a message to the console. What I actually want is just the console log. My ultimate goal is to have the button trigger the modal, but right now, I'm testing things in the console only. I am using Bootstrap version 4.3.