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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -