twitter/bootstrap — Issue #2433: Custom css class for tooltips
Author: alexxfsilva
Created: 2012-03-06 21:19:31+00:00
State: open

Say I want to customize a tooltip that I am using to show a validation message at a specific input in my form.
It would be nice to have the ability to specify a class name for a tooltip, something like:

```
$("#my_input").tooltip({
title : 'Esse CPF já está cadastrado',
trigger : 'focus',
placement : 'top',
cssClass : 'error'
});

```
![Image](http://img842.imageshack.us/img842/4033/69993783.png)

Better yet if it had styles to match `warning`, `success`, `error` and `info`.