I am stuck in getting this value need help please

Sorry i got wrong post.

You probably need to use event delegation if the elements are dynamically loaded:

$(document).on("click", "mydeletebtn", function(){
  console.log($(this).prev().val());
});