Is it possible to simplify this selector by seeing that the parent elements are the same?
$(".card .card-title .fa-star-o, .card .card-title .fa-star")
for example, something like:
$(".card .card-title (.fa-star-o, .fa-star)")
(above does not work, obviously)
Of course, the comma path works, but I just want to find out if there is a better, cleaner way.
source
share