Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to make data toggle=modal always active

$(document).ready(function() {
  $('#myModal').modal('show');
});
Comment

how to make data toggle=modal always active

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<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>
Comment

PREVIOUS NEXT
Code Example
Javascript :: side effect, useEffect, return 
Javascript :: use different environment variables in production and development 
Javascript :: Add Text Inside Of React Component 
Javascript :: vscode read environment variables 
Javascript :: array.length 
Javascript :: Grunt--example gruntfile.js 
Javascript :: react usecallback hook 
Javascript :: on enter to tab javascript 
Javascript :: payfast javascript 
Javascript :: react render children inside parent component 
Javascript :: angular chart js legend position 
Javascript :: Show Modal Dialog on Jetpack Compose 
Javascript :: array of range of numbers 
Javascript :: coreui react change background color 
Javascript :: javascript split a string 
Javascript :: global catch in javascript 
Javascript :: java script example 
Javascript :: puppeteer block request javascript 
Javascript :: passing props in react functional components 
Javascript :: set number of reducers in mapreduce 
Javascript :: ajax add custom header 
Javascript :: run the for loop in the html elements and show the limited elements in javascript 
Javascript :: cheapest node js hosting 
Javascript :: how to get lastchar in string in js 
Javascript :: React Native drawer navigation screen header title and buttons 
Javascript :: create variable javascript 
Javascript :: boolean javascript 
Javascript :: make forn awesome icon clickable in react 
Javascript :: nodejs beautifulsoup 
Javascript :: js dataset 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =