Bootstrap 3 modal form not appearing

Xar

I have this simple modal form done with Bootstap 3, and I have no clue why it's not appearing when I click on the button.

<div id="modal" class="modal hide fade in" style="display: none;">
    <div class="modal-header">  
        <a class="close" data-dismiss="modal">×</a>  
        <h3>Some title</h3>  
    </div>  
    <div class="modal-body">  
        <form id="modal-form" accept-charset="UTF-8" action="/mailing" data-remote="true" method="post">
            <label>Name:</label>
            <input type="text" class="span6">  

            <label>Email:</label>
            <input type="text" class="span6">  

            <label>Message:</label>
            <textarea type="text" class="span12" rows="4"></textarea>
        </form>
    </div> 
    <div class="modal-footer">
        <a href="#" class="btn btn-success">Send</a>  
        <a href="#" class="btn" data-dismiss="modal">Cancel</a>  
    </div>  
</div>

And this is the button that should make this modal window appear when clicked:

<p class="text-center">
    <a data-toggle="modal" href="#modal" class="btn btn-success btn-lg">
        <span class="glyphicon glyphicon-envelope"></span>
                    Message me
    </a>
</p>

It is not much different to the example codes I've seen around the web, but I can't make the modal window to appear.

Any idea why it's not working?

Edit:

This is how I'm including the Bootstrap JS files:

<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet" />
Damathryx

You don't have the js file of bootstrap. Those aren't js files but css files of bootstrap. Include this inside your body element just before the closing tag < /body>

<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>

both css and js files are needed

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Bootstrap 3 modal form not appearing

From Dev

Rails Bootstrap Modal not appearing

From Dev

Twitter Bootstrap Modal - not appearing

From Dev

Rails Bootstrap Modal not appearing

From Java

Bootstrap modal appearing under background

From Dev

Bootstrap 3 Form Modal while in loop

From Dev

Bootstrap 3 modal form not triggering jQuery .submit()

From Dev

How to style form inside modal with Bootstrap 3

From Dev

Bootstrap 3 modal form not triggering jQuery .submit()

From Dev

Bootstrap form label not appearing in correctlly

From Dev

Bootstrap modal in modal form issue

From Dev

Bootstrap Datepicker appearing at incorrect location in a modal

From Dev

jQuery datapicker appearing behind twitter bootstrap modal

From Dev

Bootstrap datetime picker in Modal mode not appearing

From Dev

Bootstrap modal with opacity appearing behind the background

From Dev

Bootstrap Form Submission and Modal

From Dev

center form in Bootstrap Modal

From Dev

submit form in bootstrap modal

From Dev

Bootstrap Modal Form

From Dev

get data From Bootstrap 3 modal form with jquery ajax

From Dev

Rails form input fields overflowing with Bootstrap 3 modal dialog

From Dev

Bootstrap 3 modal is closed when enter is pressed, but form is not submitted

From Dev

How to restore data on edit form implemented by Bootstrap3 modal

From Java

Bootstrap 3 and Youtube in Modal

From Dev

Bootstrap 3 Modal not launching

From Java

Bootstrap 3 with remote Modal

From Dev

Bootstrap 3 modal change

From Dev

Bootstrap 3 Modal Position

From Dev

Bootstrap 3 Modal isShown