You need to sign in to do that
Don't have an account?
Rals Chadda
Bootstrap modal
HI ,
i want to use bootstrap modal which on click of custom button "Open modal", itshould open a pop - up ..
i used this code from repositorm bt when i click on button "Open Modal" the pop up dosent work, nothing happens .
any help ?
<apex:page > <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.2.0-dist/css/bootstrap.min.css')}"/> <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.2.0-dist/js/bootstrap.js')}"/> <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'bootstrap-3.2.0-dist/js/bootstrap.min.js')}"/> </head> <body> <div class="container"> <h2>Modal Example</h2> <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button> <!-- Modal --> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Modal Header</h4> </div> <div class="modal-body"> <p>Some text in the modal.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </body> </html> </apex:page>
All Answers
Kudos ! it works .
i understand where I went wrong likeI am not able to understand
As you said either of the two we csn use bootstrap .js or bootstrap.min.js ? is it so bcz both perform same functionality or something else.
Also , why Is it necessary to use jquery when we use bootstrap modal
Thanks A ton !
man
Bootstrap is build using jQuery. So bootstrap needs jQuery plugin to be included in your page. Also it depends in which order you included them. You have to include jQuery first and then bootstrap.