How can I determine the label dragged in this area? Label dragging
I am working on a work-hour system.
To record the working hours of each person
However, you can specify the number of hours each person is working for, instead of entering the number of hours in the text box.
It depends on the drag.
Yes.
There are 7 labels on the top of the page. each label represents how many hours. when you want to count how long you work, you only need to drag the label above to the corresponding area with the mouse to achieve filling,
My question is, how can I determine the label that is dragged in this area?
Reply to discussion (solution)
The previous image may be more vivid.
Should the tag have a name? You can get
The specific method is related to your code.
Oh
For example
I now put this one-hour tag on April 1, May 6.
Then, when I click confirm to submit, I have to send the corresponding data to the back segment.
I just don't know. my code or the name of this effect can implement this function.
Isn't the drag completed by js? When the drag is complete, you put the tag name in the hidden space. isn't that the end of the submission question?