Solved
Add style attribute based on checkbox selection
Hi Community,
I need to add a style attribute to an element in a HTL file, if a checkbox is checked and I tried the below example.
<div class="test" style="${model.checkBox ? 'display:none' : ''}">
</div>
I also tried ,
data-sly-attribute.style=""I guess which is not allowed.
Is there any suggestions, please do help here. Thanks.