Friday, 15 April 2011

jquery - How to add css in HTML title -


This question is already an answer here

  • 6 replies
datatable for one

I am using my data population I'm using the title for header tooltip. But can I use CSS with it? Like I tried

  #mainTable title {font-weight: bold; Font-size: 30px; Red color; }  

and I want to use CSS in table headers inside createTable = '& lt; Table ID = "mainTable" class = "display" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; The title = & gt; the date of the activity that was not done during this period. "; Start period & lt; / Th & gt; & Lt; Th title = intelligence (milestone) & gt; Intelligence & lt; / Th & gt; & Lt; Th title = engaged (milestone) & gt; Engaged & lt; / Th & gt; & Lt; Th & gt; Eligibility & lt; / Th & gt; & Lt; Th & gt; Internal submission & lt; / Th & gt; & Lt; Th & gt; Current & lt; / Th & gt; & Lt; Th & gt; Interviews & lt; / Th & gt; & Lt; Th & gt; Support & lt; / Th & gt; & Lt; Th & gt; Placements & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; ';

Can I get in any way?

Short answer: You can not.

Long answer: You can create your own tooltip popups that you have control over CSS if you have to use javascript. You can write your own, or you can use one of the many available plugins


No comments:

Post a Comment