Quantcast
Channel: How do I add 2 conditional classes to a div? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How do I add 2 conditional classes to a div?

$
0
0

Here is my div. What is the syntax for adding another conditional class?

.progress{ :class => list.overdue? ? "progress-danger" : ""  }

I essential want to add list.dirty? ? "progress-warning" : ""

But what is the right way to fit that in along side the list.overdue? part?


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>