Using jQuery, I am trying to capture and display the value of a div class when it is ‘dropped’.
For example, I want to display ’01:20′ when this particular element is dropped.
div class=’routineTime’>01:20 /div>
Additionaly, I want to sum and display a running total of these dropped elements.
I have an example in jsfiddle, but it’s only displaying the ‘routineTime’ of the first element
that is dropped. I need to sum and display ‘routineTime’ for each element that is dropped.
http://jsfiddle.net/n2learning/QfFQ9/9/
Appreciate any help!
DK
You need to implement a iterator for all the dropped elements inside the drop able section.
DEMO
The addTime logic has its own complexity… which you need to implement inside the$.eachEdit: Added addTime logic.. Let me know how it goes.