forms - Bootstrap 3 contact modal is not showing up -


i have small contact modal on website not appear. working before, must have changed , won't work.

i've looked on multiple times , can't figure out why it's not working.

html:

<a href="contact"><span data-toggle="modal">contact</span></a>  <div class="modal fade" id="contact" role="dialog">     <div class="modal-dialog">         <div class="modal-content">             <form class="form-horizontal">                 <div class="modal-header">                     <h4>contact developers</h4>                 </div>                 <div class="modal-body">                      <div class="form-group">                          <label for="contact-name" class="col-lg-2 control-label">name:</label>                         <div class="col-lg-10">                              <input type="text" class="form-control" id="contact-name" placeholder="full name">                          </div>                      </div>                      <div class="form-group">                          <label for="contact-email" class="col-lg-2 control-label">email:</label>                         <div class="col-lg-10">                              <input type="email" class="form-control" id="contact-email" placeholder="you@example.com">                          </div>                      </div>                      <div class="form-group">                          <label for="contact-msg" class="col-lg-2 control-label">message:</label>                         <div class="col-lg-10">                              <textarea class="form-control" rows="8"></textarea>                          </div>                      </div>                  </div>                 <div class="modal-footer">                     <a class="btn btn-default" data-dismiss="modal">close</a>                      <button class="btn btn-primary" type="submit">send</button>                 </div>             </form>         </div>     </div> </div> 

you missing data-target attribute. plus, shouldn't linking page when want open modal ;)

<a href="#"><span data-toggle="modal" data-target="#contact">contact</span></a>

should fix this. see http://www.bootply.com/ued0aevxsg


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -