<p>I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid.  Needless to say this did not help much.  I then posted to a google group for Mootools with no response.  My question is why doesn't the 'enter', 'leave', 'drop' events fire for my '.drop' elements?  The events for the .drag elements are working.</p>

<pre><code>&lt;title&gt;Untitled Page&lt;/title&gt;
&lt;script type="text/javascript" src="/SDI/includes/mootools-1.2.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/SDI/includes/mootools-1.2-more.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" charset="utf-8"&gt;
    window.addEvent('domready', function() {
        var fx = [];
        $$('#draggables div').each(function(drag){
            new Drag.Move(drag, {
                droppables: $$('#droppables div'),
                onDrop: function(element, droppable){
                    if(!droppable) {
                    }
                    else {
                        element.setStyle('background-color', '#1d1d20');
                    }
                    element.dispose();
                },
                onEnter: function(element, droppable){
                    element.setStyle('background-color', '#ffffff');
                },
                onLeave: function(element, droppable){
                    element.setStyle('background-color', '#000000');
                }
            });
        });

        $$('#droppables div').each(function(drop, index){
            drop.addEvents({
                'enter': function(el, obj){
                    drop.setStyle('background-color', '#78ba91');
                },
                'leave': function(el, obj){
                    drop.setStyle('background-color', '#1d1d20');
                },
                'drop': function(el, obj){
                    el.remove();
                }
            });
        });
    });
&lt;/script&gt;

&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
    &lt;div id="draggables"&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
    &lt;div class="drag"&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div id="droppables"&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
    &lt;div class="drop"&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&lt;/form&gt;
</code></pre>

[{'answer_id': 12910, 'author': 'maxsilver', 'author_id': 1477, 'author_profile': 'https://Stackoverflow.com/users/1477', 'pm_score': 3, 'selected': True, 'text': '<p>Ok, it looks like there are a couple of issues here. As far as I can tell, there is no such thing as a "droppable" in mootools. This means your events like \'enter\', \'leave\' and \'drop\' won\'t work. (These are events on the drag object)</p>\n\n<p>If you change those names to events that elements in mootools have (as in, DOM events) your code works perfectly. For instance, if you change \'enter\' and \'leave\'  to  \'mouseover\' and \'mouseout\', your events fire with no problem. (Opera 9.51 on Windows Vista)</p>\n\n<p>This appears to be the revelant line in the documentation for this, which stats to use DOM events.</p>\n\n<p><a href="http://docs.mootools.net/Element/Element.Event#Element:addEvents" rel="nofollow noreferrer">http://docs.mootools.net/Element/Element.Event#Element:addEvents</a></p>\n\n<p>Also, on that page, is a link to the events that regular elements can have</p>\n\n<p><a href="http://www.w3schools.com/html/html_eventattributes.asp" rel="nofollow noreferrer">http://www.w3schools.com/html/html_eventattributes.asp</a></p>\n\n<p>However, <a href="http://mootools-users.660466.n2.nabble.com/Drag-and-drop-problem-I-m-having-td686391.html" rel="nofollow noreferrer">the advice "TG in SD" gave you in the nabble forums</a> is probably best. If you can, don\'t bother using these events. Put whatever it is you need to do in the draggable object, and save yourself all this hassle.</p>\n'}, {'answer_id': 9935722, 'author': 'Neil', 'author_id': 1302175, 'author_profile': 'https://Stackoverflow.com/users/1302175', 'pm_score': 1, 'selected': False, 'text': '<p>According to <a href="http://mootools.net/docs/more/Drag/Drag.Move" rel="nofollow">Mootools Docs</a>, "<code>droppables</code>" is one of the options expected by the <code>Drag.Move</code> class. In fact, this is the array of elements that interact with the element when it fires the "<code>drop</code>," "<code>enter</code>," and "<code>leave</code>" event.</p>\n'}]
['https://Stackoverflow.com/questions/9831', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1491425/']