Remove Timepicker fields

Asked

Viewed 33 times

0

I’m trying to remove the second, millisecond and Timezone fields but I can’t. I checked the documentation, I put showTimezone: false but still appears. How can I proceed?

inserir a descrição da imagem aqui

Code that I’m using:

<script>
$(function() {
$('#hora_parada').timepicker({
	timeOnlyTitle: 'Selecione a Hora',
	timeText: 'Hora Selecionada',
	hourText: 'Hora',
	minuteText: 'Minuto',
	currentText: 'Agora',
	closeText: 'Selecionar',
});

});
</script>

1 answer

1


I recently applied this setting to the environment I work in. See below:

 $(element).timepicker({
                            minuteStep: 1,
                            showSeconds: true,
                            showMeridian: false,
                            defaultTime: true
 });

not to display the seconds, simply put the showSeconds: false

  • I put it like this but it’s no use, all options appear yet.

  • Try using this: $('#timeformatExample1'). timepicker({ 'timeFormat': 'H:i'});

Browser other questions tagged

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