Few questions regarding Jquery Draggable

Few questions regarding Jquery Draggable

Hey all,

I'm quite new to jquery and javascript. I'm trying to create a small webapplication that allows me to create a day schedule fast and easy. It's going good for the layout part but i'm stuck with the interaction part. 

I have a webpage with a few draggable blocks. I would like to create a button to save the current layout (as the blocks are dragged around). That's my first problem.

My second problem is how i can make a button to add a block and let the user input the name of that block. The new user made block should come in a specific div so that the layout will stay the same and it will get the same css as the other grouped blocks. 




I hope someone can help me