I want to delete a div with a dynamically created id.
i capture the id via the attr i.e
var rowToDelete = $(this).attr('data-name');
I then tried this:
$(# " + rowToDelete + ").remove();
and this:
$(#rowToDelete").remove();
none worked. I am not concatenating the values correctly.
How do I correctly concatenate the value to the ‘#’ .