i have read a program that have a drag functionality in a table but i really think it is not efficient , here is the code
var downState = false;
$('#element').delegate('td','mousedown',function() {
downState = true;
//do stuff
}).delegate('td','mouseenter',function() {
if (downState)
//do stuff
});
what i don't like is when a user hovers on a table cell he triggers the mouse enter event
is there more efficient way ?