I have written a plugin that allows a user to select table cells:
https://jsfiddle.net/leeprice/Neftr/
I have the main functionality complete, however, I have a problem. I need to be able to able to pass the selected function as a plugin option. You'll see where I've commented in the fiddle.
The problem is, the function is only supposed to execute when mouseDown = 1, but it executes on mousemove
any help appreciated :)
selectedshouldn't be in quotes btw.