0

At present I am working above mentioned datetimepickers. jQuery datetime picker fights with bootstrap datetimepicker.

Jquery datetimer pciker sample code:

$('#start-date').datetimepicker({
            onShow: function(ct){
              this.setOptions({
                minDate: new Date()
              });
            },
            timepicker: true,
)};

Bootstrap datetimer pciker sample code:

 $('#end-date').datetimepicker({

    )};

Here The problem is They use the same function called datetimepcker(). so that They have a fight each other. please help me overcome this problem.

Kumaresan Perumal
  • 131
  • 1
  • 1
  • 13

1 Answers1

0

You can write the codes in different files and include the respective files in the respective html.

e.g you can write the jquery datetime picker in jquery_datetime_picker.js and bootstrap in bootstrap_datetime_picker.js and include these files in the respective html files using java_script_include_tag

also include bootstrap in bootstrap_datetime_picker.js file

Ajit
  • 18
  • 7