$("#btn").on("click",()=>{
  var el = $(this);
 el.parent().find("#lbl").html("a");
 });
 
  $("#btn1").on("click",function(){
  var el = $(this);
 el.parent().find("#lbl").html("a"); 
 });
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="dvHeader">
<label id="lbl">Hello WOrld</label>
<button id="btn">
Button 1!
</button>
<button id="btn1">
Button 2!
</button>
</div>I'm starting to learn an arrow function. I am wondering the two code above for button function don't work properly in an arrow function. But the other one is working properly. Did I do wrong?.
 
     
     
    