Problem setting options of draggable after init.

Problem setting options of draggable after init.


Hello everybody!
I'm new using this great library...
I'm interested in using the draggable option... I'm doing what the
this link (http://jqueryui.com/demos/draggable/#option-containment)
says, but it just doesn't work... I want to set the container option
after the init... and if I put those options nothing happens...
This is my code:
This WORKS:
<body>
<div id="limite" style="width:400px;height:400px;border:3px
dotted black;">
<div id="draggable" style="width:200px;height:200px;border:
2px dotted black;background:#F4EDDB;"></div>
</div>
<script>
$("#draggable").draggable();
</script>
</body>
This does NOT WORK:
<body>
<div id="limite" style="width:400px;height:400px;border:3px
dotted black;">
<div id="draggable" style="width:200px;height:200px;border:
2px dotted black;background:#F4EDDB;"></div>
</div>
<script>
$("#draggable").draggable("option", "containment","#limite");
</script>
</body>
I just don't understand what's happening because the documentations
says that this should work...
Thanks a lot!!
bye!