views:

21

answers:

1

Hi, I have multiple drop zone with div id as unique. How do I get the div id before droping to that perticular div id. Regards, Murthy

A: 

This question doesn't make sense. Please formulate a clear request with source code.

I'll take a stab at it anyway, however. If you're using Javascript, you'll need document.getElementById("uniqueID") which will return the div object.

A great shortcut for this is the dollar function...

function $(uniqueID) { 
  return document.getElementById(uniqueID); 
}

...which does the same thing but with much less typing.

By the way, if the ID is to a different type of element, like a span, it will return the span object. Hopefully this is obvious.

Steve