Tooltip inside a table cell

Tooltip inside a table cell

kidalexkidalex Posts: 10Questions: 0Answers: 0
edited October 2013 in General
What about be the best way to attach Bootstrap's tooltip to an icon inside a datatable's cell? The syntax is: $("#element").tooltip();

Replies

  • LitashLitash Posts: 4Questions: 0Answers: 0
    edited October 2013
    take a look at this http://datatables.net/ref#sClass
    Assign a css class to the cell, then use $(".classname").tooltip();

    another way is maybe you can give "title" attribute to the cell, that will display a mouse over tooltip on that cell.
  • kidalexkidalex Posts: 10Questions: 0Answers: 0
    Thanks, Litash. But in my case it has to be two different icons with two different tooltips inside a single cell.
  • LitashLitash Posts: 4Questions: 0Answers: 0
    Hi kidalex, if your icon is , you can simply use the standard HTML for image.
    [code][/code]
This discussion has been closed.