i got this code written a few minutes ago I was wondering if why won't the item be removed.
(function($) {
  $('#btn1').click(function() {
    var textVal = $('#input').val();
    if (textVal != "") {
      $('#list').append('<li class="class1" id="' + textVal + '">' + textVal + '<input type="hidden" name="Tags" value="' + textVal + '" /> <input type="button" class="remove-item" value="X"></input></li> ');
    }
  });
  $('.remove-item').click(function () {
    $('.list #' + textVal).remove()
  });
})(jQuery);<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input id="input" type="text" />
<input type="button" id="btn1" value="Add" />
<ul id="list"></ul> 
     
     
     
    