bootstrap-modal

My validation not working In Bootstrap Modal using Ajax

穿精又带淫゛_ 提交于 2020-12-13 04:34:09
问题 This is my ajax post of the adding form, when I console.log the data.errors , I get the value but it doesn't appears when I press the submit button. $('#guanyinAdd').click(function(e){ e.preventDefault(); var id = $('#sx_ID').val(); var receipt = $('#gylight_receipt').val(); var amount = $('#gylight_amount').val(); var number = $('#gylight_number').val(); var label = $('#gylight_label').val(); var remark = $('#gylight_remark').val(); var sDate = $('#gylight_sDate').val(); var eDate = $('

Bootstrap 4 alignment in IE 11

瘦欲@ 提交于 2020-07-09 05:22:39
问题 I'm converting one of my websites from AngularJs / Bootstrap 3 to Angular 6 / Bootstrap. In Chrome and firefox, and edige, my modal looks like this: However, in IE11 The code: <div class="container"> <div class="modal-header"> </div> <div class="modal-body"> <form [formGroup]="loginForm" (keydown.enter)="onKeydown($event)"> <div class="row form-group"> <div class="col-12"> <input type="email" class="form-control" placeholder="Email" formControlName="userName" required autofocus /> <p *ngIf="

Capture close event on Bootstrap Modal

放肆的年华 提交于 2020-06-09 08:36:09
问题 I have a Bootstrap Modal to select events. If the user clicks on the X button or outside the modal, I would like to send them to the default event. How can I capture these events? This is my HTML code: <div class="modal" id="myModal"> <div class="modal-dialog"> <div class="modal-content event-selector"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> <center><h1 class="modal-title event-selector-text">Select an Event</h1>

Capture close event on Bootstrap Modal

放肆的年华 提交于 2020-06-09 08:36:07
问题 I have a Bootstrap Modal to select events. If the user clicks on the X button or outside the modal, I would like to send them to the default event. How can I capture these events? This is my HTML code: <div class="modal" id="myModal"> <div class="modal-dialog"> <div class="modal-content event-selector"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> <center><h1 class="modal-title event-selector-text">Select an Event</h1>