html - How to set color to text within <a href> -


i have following auto-generated markup:

<th id="__id__th__" class="__generated_classes__">     <a href="#" id="__id__a__" class="__other__generated_classes__">         text     </a> </th> 

i need apply color: #21610b;. issue th , a tags generated ui-framework, can't directly affect them. thing can apply style attribute both th , a tags.

html

<th id="__id__th__" class="__generated_classes__">    <a href="#" id="__id__a__" class="__other__generated_classes__" style="color: #21610b;">          text      </a>  </th>

as style inline, overwrite other styling set.

javascript

if unable that, can use bit of javascript change font color.

pure js:

var x = document.getelementbyid('someid'); x.style.color = '#21610b'; 

jquery:

$( document ).ready(function() {     $('#someid').css('color', '#21610b'); }); 

css

you can alternatively add css. if know class set class, if not, need set !important tag.

th {     color: #21610b; !important } 

or

th a.__other__generated_classes__ {     color: #21610b; } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -