I’m using the following selector:
$('#details:input[name=addr]').remove();
I’m trying to retrieve all the input fields with addr set in the name field, from the #details div.
However the field is not removed. The selector returns an Object entity but the removal does not happen. What am I missing? Thanks!
try
$("#details input[name=addr]").remove()