How to use common jquery drag and drop code with two divs containing elements of identical ids

How to use common jquery drag and drop code with two divs containing elements of identical ids

hi all,

I have common jQuery function for drag and drop and two div tags. Both div tags have different ids but both containing elements of identical ids. I have a block and a placeholder for each so when i drag 'block1' olny placeholder of first table should be blink and but both are blinking.

Here's link to my fiddle - http://jsfiddle.net/2pFqe/3/

In jsfiddle i have two divs of id, 'id1' and 'id2' both containing elements of same id. Now when i drag block1 both placeholders are blinking. I have tried .filter(:first), eq(0) but no solution


Is there any way to do this??

Please help me to sort out this.


Regards.