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.

Member Avatar for iamthwee

I'm not quite sure what you're trying to do?

Member Avatar for diafol

You should never have more than one element with the same unique id in a page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.