I am using Twitter Bootstrap--and I am not a frontend developer! However, it's making the process almost--dare I say--fun!
I'm a bit confused about tooltips. They are covered in the documentation but Twitter assumes some knowledge. For example, they say to trigger the tooltip with the following JavaScript code.
$('#example').tooltip(options)
After poking around on their source, I realized that fields with tooltips need to be in a class and have the following code run.
$('.tooltipclass').tooltip(options)
But now my question is, why doesn't Twitter Bootstrap provide such a class tooltip
? Just to allow greater configuration? Is it better to add the individual elements with tooltips to tooltipclass
, or should I add the surrounding area to tooltipclass
? Does it matter if I use a class identifier (.class
) instead of a name identifier (#name
)?