Row highlighting based on field value
Posted: 2021-06-13 13:07
Hello group, I am new to AppGini and I am having difficulty getting this feature to work and could use some assistance please.
Inspected my element, class name of the table field is 'Account-Type'
Duplicated the script in the 'footer-extras.php' file in the 'hooks' folder of the Northwind Demo project yet when I refresh (clearing cache) it doesn't work. Any Ideas?:
<script>
$j(function(){
$j('.Account-Type').each(function(){
var TType = $j(this).text();
if(TType == 'Credit'){
$j(this).parents('tr').addclass('success');
}
})
})
</script>
Any help is appreciated,
Thanks for your time.
Bill
Inspected my element, class name of the table field is 'Account-Type'
Duplicated the script in the 'footer-extras.php' file in the 'hooks' folder of the Northwind Demo project yet when I refresh (clearing cache) it doesn't work. Any Ideas?:
<script>
$j(function(){
$j('.Account-Type').each(function(){
var TType = $j(this).text();
if(TType == 'Credit'){
$j(this).parents('tr').addclass('success');
}
})
})
</script>
Any help is appreciated,
Thanks for your time.
Bill