Hello this is my first question, english is not my native language so sorry if I make some mistake.
I'm using Angular 6, jQuery and BS for my project.
I have two accordions with different categories each. Let's name them A1 and A2.
When i click A1 i want A2 to also open/close, same when i click A2. Is there any way ?
I tried jQuery for this but I get an endless loop
$('.A1').on('click', async function() {
await $(".A2").click();
});
$('.A2').on('click', async function() {
await $(".A1").click();
});
Thanks in advance to anyone who can answer this