how to set background images when jquery dialog ui is open()
how can i set background images of html page in jquery
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The jQuery UI Dialog won’t prevent you from altering the page behind it with javascript, even if the dialog is modal.
The following will work:
If you want to set that background image when your UI Dialog opens, then you would bind to the dialog’s “open” event, like so:
or…
If you’re experiencing trouble setting a new background image on the page, it may be that there’s an element being styled on your page with a more specific CSS selector than you’re providing. For instance, you may have a wrapper div nested just inside the body that has a background image, which would knock out the body tag’s.