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 🙂
Use initialization:
And call your handler:
Code: https://jsfiddle.net/Neftr/6/