Bootstrap modal dialog set attributes from javascript -
how set theese attributes: data-backdrop="static" data-keyboard="false" modal opened javascript with:
$('#mymodal').modal('show');
?
in js can this:
$('#mymodal').modal({show: true, backdrop : false, keyboard : false});
in html can this:
<div class="modal" id="mymodal" role="dialog" data-backdrop="static" data-keyboard="false">
use second 1 if want in html , want these attributes.
Comments
Post a Comment