Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

modal.hide not working

function hideModal() {
  $("#myModal").removeClass("in");
  $(".modal-backdrop").remove();
  $('body').removeClass('modal-open');
  $('body').css('padding-right', '');
  $("#myModal").hide();
}
Comment

bs modal is working but not visible

<!-- Modal -->
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Modal header</h3>
  </div>
  <div class="modal-body">
    <p>One fine body…</p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-primary">Save changes</button>
  </div>
</div>

<a class="btn" data-target="#myModel" role="button" data-toggle="modal">Launch demo modal</a>
Comment

PREVIOUS NEXT
Code Example
Javascript :: create angular project 
Javascript :: change class Name in react 
Javascript :: check a string for unique characters javascript 
Javascript :: play sound with keydown javascript 
Javascript :: string json to class c# 
Javascript :: ipify api 
Javascript :: difference between find and filter javascript 
Javascript :: check how many files in a folder js 
Javascript :: jquery set span text by id 
Javascript :: toastr alert js 
Javascript :: mongoose update and return new 
Javascript :: Bots member count discord js 
Javascript :: loop through json array and get key name 
Javascript :: angular ng default scss 
Javascript :: image upload react 
Javascript :: ajax submit form data 
Javascript :: increased the value of a counter when a button is clicked in javascript 
Javascript :: what is 5+5 
Javascript :: random number generator javascript with range 
Javascript :: add array to array javascript 
Javascript :: get top window url from iframe 
Javascript :: js get time 
Javascript :: how to convert a queryset into json string 
Javascript :: map of filtered data react 
Javascript :: javascript wait for element 
Javascript :: javascript fibonacci sequence recursion 
Javascript :: javascript fibonacci example 
Javascript :: html2pdf example angular 
Javascript :: parse time in javascript 
Javascript :: mongodb mongoose push into nested array 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =