1. FInd the name of the table whose tile colour you want to change. I'll use "my_table1" which has the Bootstrap info class (blue) in this example, but obviously, change the table name to meet your own requirements. To select the correct tile, build your query like this:
Code: Select all
$j('#my_table1-tile').find('.btn-info')
You should now have this:
Code: Select all
$j('#my_table1-tile').find('.btn-info').removeClass('btn btn-info').addClass('btn btn-danger');
1. Don't forget the #
2. That really is a space between 'button' and 'button-info'
3. Don't forget to use ' '
Now make it look like a jquery function and paste it into your header-extras.php file
Code: Select all
<script>
$j(document).ready(function(){
$j('#op_art-tile').find('.btn-info').removeClass('btn btn-info').addClass('btn btn-danger');
});
</script>
You're done!