bootstrap 3 modal window not working -


i'm using bootstrap 3 (full version) , use bootstrap modal in code:

<a data-toggle="modal" data-target="deletemessage" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-remove"></span> Удалить</a>  <!-- modal --> <div id="deletemessage" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="false">     <div class="modal-dialog">         <div class="modal-content">             <div class="modal-header">                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>                 <h4 class="modal-title">modal title</h4>             </div>             <div class="modal-body">                 ...             </div>             <div class="modal-footer">                 <button type="button" class="btn btn-default" data-dismiss="modal">close</button>                 <button type="button" class="btn btn-primary">save changes</button>             </div>         </div><!-- /.modal-content -->     </div><!-- /.modal-dialog --> </div><!-- /.modal --> 

this code copied official docs, it's not working, modal window not display.

whats problem?

many thanks.

try change anchor code into:

<a data-toggle="modal" data-target="#deletemessage" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-remove"></span> Удалить</a> 

it looks there typo in tutorial, there should additional "#" in data-target attribute.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -