How to save the position of the draggable divs onto the database?

well i have this divs that are generated by juqery dragged inside a rectangle box and now i want to save the position of those divs into database? MY database has the fields:
table_name(random name to give to table) ,
x(top-left),
y(top-right).