Your code let currentItem = $('#newItem').val();
Doesn't works because it is outside button click event
. So execute let currentItem = $('#newItem').val();
only after the button is clicked
. I would like to suggest to bind
and unbind
the event while using click
events. And also check the if the…
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)