It is next to impossible to do a select multiple and a drag on the same items.
The forum is not to get someone else to do the work, it is to help you with your code. Post your code in a demo, and explain how you get around knowing if the user wants to drag or select the next <td>.