Ive tried anything to do this, but always get the same error
$(\".tooltip\").draggable(\'disable\');
Error: cannot call methods on draggabl
Try this:
$(".tooltip").draggable({ disabled: true });
This initializes the draggable in the disabled state. You can then use
$(".tooltip").draggable("enable");
later when you want to allow dragging.