how can i get value of dynamic element with on click in jquery

  html, javascript, jquery
// I want to get data of clicked class which is $('.add_another_ele')

$('#table-body').on('click',$('.add_other_ele'),function(){
  //get id of $(.add_other_ele)
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

Source: Ask Javascript Questions

LEAVE A COMMENT