A
A
Alexander Gorkin2018-08-01 15:06:31
Yii
Alexander Gorkin, 2018-08-01 15:06:31

How to assign class="active" in a category?

Faced such a problem. There is a list of categories:
5b61a1e43c01d949018637.png
These categories are generated from the database. How can you give them class = 'active' ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-08-01
@webinar

checking the path or checking the url in js
If you use a standard widget, then the answer is generally googled twice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question