Date time Picker bootstrap in modal

Asked

Viewed 409 times

0

The following is the date time Picker is appearing behind the modal and I’m not able to put ahead has to do this?

Code that I tried:

.form_datetime {
      position: relative;
      z-index: 9999;
  }

and

$('input').datepicker({
          beforeShow:function(input){
              $(input).dialog("widget").css({
                  "position": "relative",
                  "z-index": 20
              });
          }
      });

Input code:

<div class="form-group">
   <label for="dtp_input1" class="col-md-2 control-label">Inicio</label>
   <div class="input-group date form_datetime col-md-12" data-date="1979-09-16T05:25:07Z" data-date-format="yyyy MM dd - HH:ii p" data-link-field="dtp_input1">
   <input class="form-control" type="text" name="inserir_fim" id="inserir_fim" value="" required readonly>
   <span class="input-group-addon"><span class="fa fa-close"></span></span>
   <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
         </div>
<input type="hidden" id="dtp_input1" value="" /><br/>
                                                    </div>

Date time Picker I’m wearing: Link to datetime Picker What’s going on: inserir a descrição da imagem aqui

  • It has to put the minimum example, which would be a part of it to analyze ...

  • Have I changed that’s it? @Virgilionovic

  • What is the version of boostrap?

  • I’m using the 4

  • In his JS you’re passing the z-index with 20, in the CSS you can use the !important just to be sure

  • This is equal to the number it does not overlap in the same

Show 1 more comment

1 answer

0


.form_datetime {
      position: relative;
      z-index: 999999;
  }

.modal{
     z-index: 99999;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.