Avatar of ROM
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Jquery drag and drop breaks after div refresh... do I need to reinitialise or something?

Hi All,

Yes all working great. I moved from an entire page refresh to focus on a specific div with my user interface work area.

I am using this for the refresh now:

$("#swapwrapper").load(location.href + " #swapwrapper");

But after this occurs either dragging and dropping or updating a database value etc... then the drag and drop stops working as does the database value click divs I have.. JQuery basically appears to STOP working.

Do I need to reinitliase al my JQuery again or something (read that - so unsure).

I did not have this problem before on early development as I refreshed the entire page.. but I want a more fluid UX so just focussing on the divs.

Many thanks in advance.

Avatar of undefined
Last Comment

8/22/2022 - Mon