Nice sample. I can see places I could put this sort of interface to use right away.
If I move a coin to one of the metrics the counter goes up by one. Good so far. Now if I pick up the coin and then just drop it again without moving it, the counter goes up again. Not so good. Perhaps intercepting when the drag event starts and decrement from the container the coin is currently in? You already have code in place to increment, so simply "picking up" up a coin should decrement. The ui.draggable has a .start() method you can specify (according to the docs at http://docs.jquery.com/UI/Draggables/draggable#options - I haven't yet used ui.draggable). Can you use this to check what container you are in and do the appropriate math? The docs are a little sparse on samples for anything other than the basics though.... Not sure if that's any help, but here's hoping... Shawn Glen Lipka wrote: > I am making something for fun here: > http://www.commadot.com/jquery/magicTriangle.php > > My question is: How would I go about keeping count of how many coins > are on each metric? So if I remove one, it subtracts. > > Thanks for any advice/help. > > Glen