<div id="tipboard">
                <!--TIPS WILL POPULATE HERE-->
  <li>This is my fully informed tip about the environment and saving puppies<button class="btnLike"           type="button" id="1"></button>
  </li>
  <li>This is a tip!<button class="btnLike" type="button" id="2"></button>
  </li>
</div> $(".btnLike").click(function () {
    console.log(this);
    addLike(this);
  });var addLike = function (likeButton) {
  var idToShow = $(likeButton).attr("id");
  console.log(idToShow);
};I'm am not getting anything logging to the console. How do I select the current button from a click event using the jquery class selector?
 
     
    