Bootstrap modal dialog set attributes from javascript

bambi

How to set theese attributes: data-backdrop="static" data-keyboard="false" to modal that is opened from javascript with:

$('#myModal').modal('show');

?

Zee

In JS you can do this:

$('#myModal').modal({show: true, backdrop : false, keyboard : false});

In HTML you can do this:

<div class="modal" id="myModal" role="dialog" data-backdrop="static" data-keyboard="false">

Use the second one only if you want it in HTML and always want these attributes.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to detect the dismissal of a bootstrap modal dialog in javascript?

From Dev

Displaying a bootstrap Modal dialog from Angular Controller

From Dev

How to get selected item in Bootstrap 3 dynamic dropdown modal dialog from javascript

From Dev

href in modal dialog in bootstrap

From Dev

Validation in bootstrap modal dialog

From Dev

How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

From Dev

bootstrap-angular modal dialog: can not return value from select

From Dev

on bootstrap modal dialog load get data from controller

From Dev

How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

From Dev

How to dismiss a web modal dialog from bootstrap manually?

From Dev

Generate Twitter Bootstrap Modal Dialog from PHP with variable data

From Dev

on bootstrap modal dialog load get data from controller

From Dev

Twitter Bootstrap - Center Modal Dialog

From Dev

Using Bootstrap Clockpicker in modal dialog

From Dev

Default button in bootstrap modal dialog

From Dev

Image opens modal dialog bootstrap

From Dev

Create bootstrap-modal from string in javascript

From Dev

pass data to bootstrap modal from javascript

From Dev

Pass a value from javascript to bootstrap modal view

From Dev

Ember-bootstrap to trigger modal from javascript

From Dev

Change class of an element with a radio button in a modal (Angular UI-Bootstrap: Retrieving values from a modal dialog window)

From Dev

How to set password and username in javascript for a form placed inside a bootstrap modal

From Dev

setting up a modal dialog in javascript

From Dev

Javascript Variable to Bootstrap Modal

From Dev

Bootstrap modal dialog center image in body

From Dev

re-size the modal dialog in bootstrap dynamically

From Dev

Not able to access bootstrap modal dialog in Selenium Webdriver

From Dev

Minimize or collapse a bootstrap 2.3.2 modal dialog?

From Dev

PDF file to be displayed on the dialog modal via bootstrap

Related Related

  1. 1

    How to detect the dismissal of a bootstrap modal dialog in javascript?

  2. 2

    Displaying a bootstrap Modal dialog from Angular Controller

  3. 3

    How to get selected item in Bootstrap 3 dynamic dropdown modal dialog from javascript

  4. 4

    href in modal dialog in bootstrap

  5. 5

    Validation in bootstrap modal dialog

  6. 6

    How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

  7. 7

    bootstrap-angular modal dialog: can not return value from select

  8. 8

    on bootstrap modal dialog load get data from controller

  9. 9

    How to prevent the backdrop of bootstrap modal dialog from covering the whole screen?

  10. 10

    How to dismiss a web modal dialog from bootstrap manually?

  11. 11

    Generate Twitter Bootstrap Modal Dialog from PHP with variable data

  12. 12

    on bootstrap modal dialog load get data from controller

  13. 13

    Twitter Bootstrap - Center Modal Dialog

  14. 14

    Using Bootstrap Clockpicker in modal dialog

  15. 15

    Default button in bootstrap modal dialog

  16. 16

    Image opens modal dialog bootstrap

  17. 17

    Create bootstrap-modal from string in javascript

  18. 18

    pass data to bootstrap modal from javascript

  19. 19

    Pass a value from javascript to bootstrap modal view

  20. 20

    Ember-bootstrap to trigger modal from javascript

  21. 21

    Change class of an element with a radio button in a modal (Angular UI-Bootstrap: Retrieving values from a modal dialog window)

  22. 22

    How to set password and username in javascript for a form placed inside a bootstrap modal

  23. 23

    setting up a modal dialog in javascript

  24. 24

    Javascript Variable to Bootstrap Modal

  25. 25

    Bootstrap modal dialog center image in body

  26. 26

    re-size the modal dialog in bootstrap dynamically

  27. 27

    Not able to access bootstrap modal dialog in Selenium Webdriver

  28. 28

    Minimize or collapse a bootstrap 2.3.2 modal dialog?

  29. 29

    PDF file to be displayed on the dialog modal via bootstrap

HotTag

Archive