(function ($) { $.fn.liveDraggable = function (opts) { this.live("mouseover", function () { if (!$(this).data("init")) { $(this).data("init", true).draggable(opts); } }); return $(); }; } (jQuery)); (function ($) { $.fn.liveDroppable = function (opts) { this.live("mouseover", function () { if (!$(this).data("init")) { $(this).data("init", true).droppable(opts); } }); return $(); }; } (jQuery));