Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
kainar
kainar's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
multiple drop events (drop on covered elements)
[3Replies]
09-Mar-2012 05:26 AM
Forum:
Using jQuery UI
I want to cover some elements on the Page to prevent their drop events for some time.
But the drop events are also fired on elements which are covered by other Elements. Click events on the other hand won't fire.
Can someone explain this?
The cover element is set absolute and covers the drop element.
See sample Code below
$('#drop').droppable({drop: function( event, ui ) {$( this ).html('drop');}})
.click(function(){$(this).html('click');});
$('#cover').droppable({
drop: function( event, ui ) {
$( this ).html('drop'));
event.stopPropagation();
}
});
$('#drag').draggable();
<div id="content">
<div id="drop" style="margin:30px; width:200; height:200; background-color:blue;"></div>
<div id="cover" style="width:360px; height:200px; position:absolute; background- color:#898989; opacity:0.5; top:0"></div>
<div>
<div id="drag" style="margin:30px; width:100; height:100; background-color:green;">drag</div>
</div>
</div>
«Prev
Next »
Moderate user : kainar
Forum