Currently, I have a page where a hidden div appears at some point to display a form for inputting data. This could be considered a modal div.
My goal is to darken the rest of the page and only allow interaction with this specific div. I want the background to appear grey and transparent.
What would be the most effective approach for accomplishing this? Should I use an image and stretch it in a way that makes it transparent? Is there a method to ensure that this image captures all events that occur outside of my form-div? How can this be achieved?
Are there any alternative methods that are more efficient?
I am currently utilizing jQuery, so ideally I would like to utilize any applicable jQuery API for this task.