Udaya Ravi
Udaya Ravi

Reputation: 197

bootstrab 3 datepicker not working while access from server side through controller using compile directive in angularjs

bootstrab 3 datepicker not working in table that while access from server side through controller using compile directive in angularjs.
But if we put the table with datepicker in normal page(loading page), then it has been work well..what's wrong.can anyone give me some idea..
Thanks Advance..

Upvotes: 1

Views: 82

Answers (1)

Bugfixer
Bugfixer

Reputation: 2617

For all datepicker you can use this code.classname should be same

$('body').on('focus',".date-picker", function(){
$(this).datepicker();
});  

Upvotes: 1

Related Questions