What is the data-selector option used for in Twitter’s Bootstrap Tooltip? The description reads…
If a selector is provided, tooltip objects will be delegated to the specified targets.
But I don’t understand its purpose or how to use it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is the similar to using jQuery delegation methods like
on()ordelegate()in order to account for tooltip elements that aren’t present in page when code is run.Example binding to
bodysince it is always present in page