Bootstrap 5 content function only gets called once #41276
Unanswered
SoftCircuits
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following JavaScript/jQuery code that creates and initializes a number of Bootstrap popovers.
I need the text to be updated each time it is shown, so I thought being able to set
content
to a function would be perfect. However, this function only gets called once per popover. So instead of updating each time it is displayed, it just keeps showing its initial value.I need to update the text every time it is displayed. Does anyone know how to make that work?
I'm using Bootstrap 5.1.
Beta Was this translation helpful? Give feedback.
All reactions