Topic: Material Select and Datepicker
Magdalena Obalska answered 8 years ago
Hsunight answered 8 years ago
Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
$(function(){
$('.mdb-select').material_select();
$("#initSelect").click(function(){
console.log("initSelect");
$('.select-dropdown li:first-child').removeClass('disabled').trigger('click').addClass('disabled');
});
});
Datepicker:
$(function(){
$('.datepicker').pickadate({
format: 'yyyy/mm/dd',
});
$('#initDatepicker').click(function(){
$('.datepicker').val($('.datepicker').attr('data-value'));
});
});
There's a bug in our datepicker, so that's the reason why you're having a problem with popping-up. We'll fix it as soon as possible. Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
$(function(){
$('.datepicker').pickadate({
format: 'yyyy/mm/dd',
});
$('#initDatepicker').click(function(){
var date = $('.datepicker').attr('data-value');
var picker = $('.datepicker').pickadate('picker');
picker.set('select', date);
});
});
Hsunight answered 8 years ago
Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
Hsunight answered 8 years ago
Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
Hsunight answered 8 years ago
Magdalena Obalska answered 8 years ago
herve pro answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No