In Bootstrap, to open a pop-up window, you do this, using jQuery:
$('#edit_modal').modal();
You call the modal
function for this ID. What is the equivalent in vanilla JavaScript? I tried:
document.getElementById("edit_modal").modal();
and I get:
document.getElementById(...).modal is not a function
What am I missing? How can I call a function for a particular ID?
Thanks.