Is there a way to change my icon from expand_more to expand_less in the code below?
<li class="dropdown-bt" onclick="dropdown('content');">
<a>dropdown-content <i class="material-icons">expand_more</i></a>
</li>
I need to use this code multiple times and don't want to assign an ID to each one. Is there a way to write a single function to handle this change? Any help would be appreciated.