I saved the id of the element as a string, I want to get it using the jquery selector, for example:
var theid = $('#test').attr('id'); ... later ... $(theid).remove();
what is the correct syntax to trigger a selector using a string variable that contains the id of the element i want to remove?
thanks
source share