I have multiple div elements in my form. I have to reorder my div elements dynamically in UI by drag and drop
For ex : below is my 6 div elements
<div>Div1</div>
<div>Div2</div>
<div>Div3</div>
<div>Div4</div>
<div>Div5</div>
<div>Div6</div>
I want to change the order of div by drag and drop. For ex : I have to put the 6th div into 2nd position, similarly 4th into 1st and so on. i Couldn't able to find out how to change the position of div. Can anyone help to achieve this