Answers for "set class conditionally 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 "set class conditionally html"

Browse Popular Code Answers by Language