In jQuery, $('___').tooltip() is used to initialize Bootstrap tooltips on specific elements.
- ('.tooltip')
- ('#tooltip')
- ('.element').tooltip()
- ('[data-toggle="tooltip"]')
The correct syntax is ('[data-toggle="tooltip"]'). The attribute selector targets elements with the specified attribute, which is commonly used to activate Bootstrap tooltips.
Loading...
Related Quiz
- If you are designing a data-heavy website, how would you optimize table design and pagination for better user experience in Bootstrap?
- Describe a scenario where ScrollSpy’s default behavior might need customization for smooth scrolling.
- For performance optimization, customizing Bootstrap to include only __________ components can reduce file size.
- ___ splitting is a technique used to load JavaScript code more efficiently.
- What is the correct way to bind a 'shown.bs.tab' event in Bootstrap?