-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addClass doesn't works for modal-backdrop #3965
Comments
jsFiddle? |
http://jsfiddle.net/bentzy/ntTgX/12/ Please see the css relevant stuff at the bottom of the css pane. Thanks! |
The backdrop isn't appended to the DOM until after the Alternatives would be to tweak the JS or override the CSS in the actual stylesheet. Any reason you're not doing it this way? |
Thanks for your help. I'm still new at front-end development :-). |
If you're using a transparent backdrop to effectively not have a backdrop, there's a simpler solution: set the modal's |
What is the correct solution to show a popup with a customized backdrop, please? |
given:
.my_css_stuff {
background-color: green;
}
$('.modal').addClass('my_css_stuff'); WORKS
$('.modal-backdrop').addClass('my_css_stuff''); DOESN'T WORKS
The text was updated successfully, but these errors were encountered: