bootstrap
bootstrap copied to clipboard
Modal not hiding if I change css
If I change the left css property of a modal this code:
$("#modal").modal('hide')
doesn't work. Even if I use jQuery own hide, it doesn't do anything. If I remove the css property, it hides no problem.
Okay, after some further research the problem wasn't the css property, rather the problem was that bootstrap-modal.js adds the elements to document.body instead of the element I originally had them.