Answers for "conditionally add class to html when in a certain page"

1

html.erb conditionally add class

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

Code answers related to "conditionally add class to html when in a certain page"

Browse Popular Code Answers by Language