So I'm working with popovers using Twitter Bootstrap. I want to change the popover's content dynamically later on in my program, so after setting the popover:

$("#test").popover(selector:$("#test"));

$("#test").html("test");

I try setting the selector of the popover so I can manipulate it later. This doesn't work, however, so how do I physically select a popover?

You have error on first line. Method popover() as a parameter to takes object. You forget to added braces.

$("#test").popover({selector:$("#test")});

I hope this help.

That didn't work but I found why it wasn't working, thanks anyways!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.