Skip to content Skip to sidebar Skip to footer

Jquery : Find The Element Below One Element

I am creating a simple application using jquery, in this application I can drag an element(DIV) along the document. I can place the DIV at any position in the document, If I place

Solution 1:

If you DIV has a specific ID or class you can use the next() function (documented here).

$('#dragdiv').next()

Then you can directly work with that jquery element or use attr() to obtain it's attributes (ID, etc)

Post a Comment for "Jquery : Find The Element Below One Element"