bootstrap 4 hide modal via javascript
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>$('#myModal').modal('hide')
Also in JavaScript:
- converting response in json
- convert associative array to json javascript
- change text size according to screen react native
- angular input force uppercase
- node ubutun
- angular router navigate
- check if a variable is array in javascript
- javascript onkeydown
- how to run nextjs in another port
- node silent print to themral
- javascript change image src
- big o theory
- email regex javascript
- jquery array compare values
- how to generate random string in javascript
- callback function js
- javascript create checkbox with label
- minus month javascript date
- for of loop syntax javascript
- 'App' is not defined react/jsx-no-undef
- javascript loop if statement
- react native post api method
- ternaire javascript
- how to use componentdidmount in functional component