Cannot Get Twitter Bootstrap Modal to Work -


i cant seem modal working. transparent overlay show, it. content there in <div>, wont show in modal format on screen. here code. have ideas?

here html:

<a href="#modal-[nid]" class="ajax-link" data-nid="[nid]"    data-toggle="modal" data-target="#modal-[nid]">[title]</a> <div id="modal-[nid]" class="modal hide" tabindex="-1" role="dialog">     <div class="modal-body">         <button type="button" class="close" data-dismiss="modal"            aria-hidden="true">×</button>         <span>this test of modal</span>     </div> </div> 

i have never tried implement before. have bootstrap css files loaded , js files. have ideas going wrong?

---edit---

my exit button not working , looking this:

enter image description here

it not seem loading button in html... shows x no <button> tags around it.

you have few things wrong. take out hide class. wrap body inside modal-content , inside modal-dialog

<a href="#modal-1" class="ajax-link" data-nid="[nid]" data-toggle="modal" data-target="#modal-1">[title]</a>   <div id="modal-1" class="modal" tabindex="-1" role="dialog">     <div class="modal-dialog">       <div class="modal-content">       <div class="modal-body">           <button type="button" class="close" data-dismiss="modal"              aria-hidden="true">×</button>           <span>this test of modal</span>       </div>     </div>   </div> </div> 

http://www.bootply.com/124339


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -