I have created draggable and resizable div run time on button click using Jquery and MVC 5. Now I want to store the final size and coordinates of each div in collection in below a format:-
{DivId="1",Height="200px",Width="200px",X_Pos="100",Y_Pos="100"},
{DivId="2",Height="200px",Width="200px",X_Pos="150",Y_Pos="150"},
{DivId="3",Height="200px",Width="200px",X_Pos="200",Y_Pos="200"}
So, Next time I can load same layout as user save previous.
I am able to retrieve all values but Don't know how to create and store values in Collection<list> in jquery. If this possible then my next logic is to send this collection list to the controller. Please help me.
Thanks in Advance.