Topic: Need help customizing to use datepicker on the back of a card

tiffani pro asked 7 years ago


I'm using cards with the reveal animation to have edit functionality on the back of the card. In doing so, I need a datepicker for the edit functionality, however the overlay for the datepicker is restrained to the card instead of to the page. If I can figure out in the JS how to move the .picker that's added as part of the script to the end of the body instead of just below the input field it would work fine. Is that possible to do? Thanks

tiffani pro answered 7 years ago


I actually found a messy but effective work around:
$('.picker').each(function(index, el) {
	var pick = $(this);
	$('body').append(pick);
});
This moves the windows and allows the functionality to work. Like I said, messy and not ideal, but it does the job. I haven't found any conflicts with this yet or it affecting other functionality, but it's not been fully tested against everything. Thanks :)

I'm sorry, but there's no solution for your problem. We'll fix this in the future

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No