I\'ve got a couple of hyperlinks that each have an ID attached. When I click on this link, I want to open a modal ( http://twitter.github.com/bootstrap/javascript.html#modal
Bootstrap 4.3 - use code from below snippet - more here
$('#exampleModal').on('show.bs.modal', function (event) {
let bookId = $(event.relatedTarget).data('bookid')
$(this).find('.modal-body input').val(bookId)
})
a.btn.btn-primary.open-AddBookDialog {color: white }
Open