I need help changing the downward arrow in the code below to a fontawesome icon. I'm unsure about how to:
1. Remove the default arrow on the right of the parent node.
2. Use "+/-" symbols to represent the collapse state.
It seems that the onclick code is not functioning as expected.
Currently, the code displays + Parent Node >
When I click on the "+" sign, the list expands but the "+" sign is replaced with an empty square instead of a "-" sign.
<a href="#homeSubmenu" class="dropdown-toggle" data-toggle="collapse"
onclick="$('#AAA').toggleClass('fas fa fa-minus')">
<i class="fas fa fa-plus" id="AAA"></i>
Parent Node
</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li>
<a href="#">Sub Node 1</a>
</li>
<li>
<a href="#">Sub Node 2</a>
</li>
</ul>
I appreciate any guidance on this matter.