FooTable
FooTable copied to clipboard
footable is not working with jquery-ui datepicker
Here is my javascript.Only Footable is working but datepicker and Bootstrap tooltip js is not applied I want to use all of them in same page. $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip();
}); $(function () { $(".myDate").datepicker({ format: "dd-mm-yyyy", startDate: "01-01-1990", startView: 2, clearBtn: !0, forceParse: !1, calendarWeeks: !0, autoclose: !0, todayHighlight: !0 });
}); $('.table').footable(); function pageLoad(sender, args) { if (args.get_isPartialLoad()) {
$('[data-toggle="tooltip"]').tooltip();
$(function () {
$(".myDate").datepicker({
format: "dd-mm-yyyy",
startDate: "01-01-1990",
startView: 2,
clearBtn: !0,
forceParse: !1,
calendarWeeks: !0,
autoclose: !0,
todayHighlight: !0
});
});
$('.table').footable();
}
}
I have the same problem with the same datepicker plugins. Any solution?
You need to do with delegation
Something like this
$('.footable').on('focusin', '.myDate', function() { $(this).datepicker(); })
try adding $('.footable').footable();