Hi!
I'd like a suggestion.
I need to read a field from database and depending what is the value, I need to load a CSS class in a DIV.
I know read the field from database but I don't know how can I read this value and define the css class.
I'm trying to read the field and change the class with the code bellow in the html file but the if clause isn't working.
code
<script>
if (Apperyio('wishlist_status').textl() == "55600a7fe4b0f840f328ab8f") {
$( '#product_wishlist_bt' ).removeClass( 'product-bookmark' );
$( '#product_wishlist_bt' ).addClass( 'product-bookmarked' );
}
</script>
/code
Thanks!