I have the following modal:
<div class="modal fade" id="m_modal_1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
I have the following button that pops up the modal:
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#m_modal_1"> Launch Modal</button>
Instead of initiating from the button, how do I popup from code? I was thinking something like this:
if(status == 1){
modal("show");
}
$('#yourButton').click();