Reputation: 135
Is there a way to apply like a jquery mask on an image? my problem is i have an image that it's visibility is set to false. In the code behind, it does it's logic and if the value is set to something true, it sets the visibility of the image to true. What I want to accomplish is when the image is set to true, I want to apply like the jquery mask on the image so users cant interact with the form until they click the close link on the image. Any help would be greatly appreciated.
Upvotes: 2
Views: 2354
Reputation: 49413
See here: http://www.queness.com/post/77/simple-jquery-modal-window-tutorial. You can also go directly to their demo and try clicking on "Simple Window Modal"
The tutorial shows how to create a simple modal window. It seems that this should work for you.
Here is a jsFiddle Working Example
Upvotes: 1
Reputation: 966
All jQuery does it cover the page behind your dialog with a div, so your clicks will never reach the elements under it, you can easily do something similar.
Upvotes: 0