Now I want to save the order of the image after dragging and sorting it. the problem is: I drag the image and click save or the previous order. {code ...} I changed the image position, but the order of the obtained images remains unchanged. when you can drag an image, the order of the obtained image changes.
Now I want to save the order of the image after dragging and sorting the image. The problem is: I drag the image now and click save or the previous order.
// Obtain the image Array var goods_img = new Array; $ (". _ img "). each (function (I) {goods_img [I] = $ (this ). attr ('src ');});
I changed the position of the image, but the order of the image obtained in this way remains unchanged. how can I drag the image? the order of the image obtained also changes.
Reply content:
Now I want to save the order of the image after dragging and sorting the image. The problem is: I drag the image now and click save or the previous order.
// Obtain the image Array var goods_img = new Array; $ (". _ img "). each (function (I) {goods_img [I] = $ (this ). attr ('src ');});
I changed the position of the image, but the order of the image obtained in this way remains unchanged. how can I drag the image? the order of the image obtained also changes.
UPDATE Database refresh page after dragging to the database