Why is JQuery adding a style to my appended list item?
<p>I'm using JQuery to drag items from one list and drop them onto another.</p>

<p>Once the item is dropped it is removed from its original list and appended to its destination list.</p>

<p>I've used the code below and it seems to perform perfectly fine when inspecting the DOM, however it displays incorrectly on the page. Usually outside of the list and to the top right.</p>

<p>My first guess is that this was a CSS issue, however the problem persists even after removing all stylesheets.</p>

<p>Closer inspection in the Chrome inspector reveals that an inline style is added to each list item.I'm not sure where its coming from.</p>

<p>Here's my code.</p>

<pre><code>        $(function() {

    $( ".drag" ).draggable();

    $( ".drop" ).each(function (index){

        var title = $(this).attr('title');

        $(this).droppable({      
           accept:  title,
           activeClass: "ui-state-hover",
           hoverClass: "ui-state-active",
           drop: function( event, ui ) {

           ui.draggable.remove();
           $(this).append(ui.draggable);
           }
          }); 
    });
 });
&lt;/script&gt;




&lt;ul&gt;
&lt;li class="drag RED"&gt;RED&lt;/li&gt;
&lt;li class="drag BLUE"&gt;BLUE&lt;/li&gt;
&lt;/ul&gt;

&lt;ul class="drop" title=".RED"&gt;
&lt;li&gt;Stuff&lt;/li&gt;  
&lt;/ul&gt;

&lt;ul class="drop" title=".BLUE"&gt;
&lt;li&gt;Stuff&lt;/li&gt;      
&lt;/ul&gt;
</code></pre>
