I need to add another onclick function name changeColor() after vote function. How do I do this? I tried like follwing. It doesn't work.
<button class="ratingButton" th:attr="onclick=|vote('${listAnswer.answer_id}','+1')|" onclick="changeColor()"><i class="fa fa-star fa-2x"></i>UpVote</button><br><br>