Answer the question
In order to leave comments, you need to log in
How to use JavaScript with Bitrix?
Hello. How to influence Bitrix elements using JS?
For example, I want to click on some object, let, for example, [SECTION_ID], take action.
The thing is that I want to do an action by clicking on a menu item, and it, the infection, does not have a standard html view so that I can refer to the class.
Answer the question
In order to leave comments, you need to log in
Flipflap , because you are making statements that are not true.
Why is this here:
there the menu is not laid out as a list in html, but is displayed in an array in php
Read a free developer course for bitrix, at least what are templates and how to apply them.
Most likely, this will entail a lack of knowledge of js and php.
And no problem: copy the menu component template to your theme or to local/templates/.default/, . Change it to your liking. Add classes in your case.
You can either change the template to add custom classes or find the element through css selectors or through the content of the tag in javascript.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question