Answers for "how to conditionally add class in html"

1

html.erb conditionally add class

<div class="<%= @error ? 'error-class' : 'normal-class' %>">
Posted by: Guest on February-25-2021

Code answers related to "how to conditionally add class in html"

Browse Popular Code Answers by Language