How to change text color and size in a table
Posted: 2020-06-27 14:19
Hello,
here is my script:
<script>
$j(function(){
$j('.takalot-Status').each(function(){
var status = $j(this).text();
if(status == 'In service' ){
$j(this).css("background-color", "#00ff7f");
}
if(status == 'not in service!!!' ){
$j(this).css("border-color", "#ffa500");
}
})
})
</script>
<script>
i have managed in this script to change the color of the background and the border of one off the cells in my table.
but somehow i can't change the color of the text and i also wish to change it to BOLD, i have tried : "$j(this).css("border-color", "#ffa500");" but it dose'nt effect the text.
can someone please help?
here is my script:
<script>
$j(function(){
$j('.takalot-Status').each(function(){
var status = $j(this).text();
if(status == 'In service' ){
$j(this).css("background-color", "#00ff7f");
}
if(status == 'not in service!!!' ){
$j(this).css("border-color", "#ffa500");
}
})
})
</script>
<script>
i have managed in this script to change the color of the background and the border of one off the cells in my table.
but somehow i can't change the color of the text and i also wish to change it to BOLD, i have tried : "$j(this).css("border-color", "#ffa500");" but it dose'nt effect the text.
can someone please help?