I have bootstrap dropdown menu. To make it keep on show on click inside dropdown then I set it to JavaScript like this
$('.dropdown-menu').click(function(e)
{
e.stopPropagation();
});
It works. Then now I have
$(document).ready(function()
{
$('body').on("click",'#btn_post',function(e)
{
alert("waw");
}
});
<button class="btn btn-default" id="btn_post">Click</button>
When I click button, I can't see the alert "waw". But when I remove the e.stopPropagation();
the alert will appear.
I want that 2 function can be run without conflict.