Linked Questions

Popular Questions

Draggable Bootstrap Popover

Asked by At

I'd like to create a Bootstrap popover that follows a draggable image (using jQuery UI Draggable library). By "follows", I mean that if the image is dragged 10 pixels right, the popover also moves 10 pixels right. The issue I'm having is that I'm not sure how to link the Bootstrap popover to the image. The 'container' parameter on the popover intializer doesn't seem to work (ideally, I would like to put the image and the popover in a parent div and make that div draggable). I'm not sure what the best way to go about doing this is? Elegant solutions would be great, but a hacky one is better than nothing!

Related Questions