How can I activate the click event only on the child of the element (identify by his class) that I clicked?
I try this but seems that active all the onclick event of the .a-collaps-button on the page (I have multiple .collaps-button and multiple .a-collaps-button)
<button class="collaps-button">
  <a href="#adminModal" class="a-collaps-button" data-toggle="modal" onclick="showModalContentjs('modificy')">Modificy</a>
</button>
$('.collaps-button').click(function () {
  $(this).children('.a-collaps-button').click();
});
For the CSS I do this and it works
$(function () {
  $('.collaps-button').hover(function () {
    $(this).children('.a-collaps-button').css('color', '#f44242');
    $(this).children('.a-collaps-button').css('text-decoration', 'none');
  }, function () {
    $(this).children('.a-collaps-button').css('color', 'white');
    $(this).children('.a-collaps-button').css('text-decoration', 'none');
  });
});