Thymeleaf - Dynamically Add or Remove a CSS Class - th:classappend Attribute
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
In this article, we will discuss how to dynamically add and remove CSS class in Thymeleaf templates.
Using th:classappend attribute
Thymeleaf comes with th:classappend attribute that was created for adding a style class to an element without overwriting the existing defined classes.
The following example shows how to use it conditionally:
Hello, an amazing Information dude. Thanks for sharing this nice information with us. Broward Family Law Mediator
ReplyDelete