1.jQuery Attribute Starts With Selector
On jQuery, "Attribute Starts With Selector" selects elements that have the specified attribute with a value beginning exactly with a given string.
jQuery('[attribute^="value"]')
If you want to remove the divs which 'id' starts with "ABC_", your code goes something like this:
$('div[id^="ABC_"]').remove();
The document is here
http://api.jquery.com/attribute-starts-with-selector/
2. jQuery Attribute Ends With Selector
Similarly,"Attribute Ends With Selector" selects elements that have the specified attribute with a value ending exactly with a given string.
jQuery('[attribute$="value"]')
If you want to remove the divs which 'id' ends with "_ABC", your code goes something like this:
$('div[id$="_ABC"]').remove();
The document is here
http://api.jquery.com/attribute-ends-with-selector/
3. jQuery Attribute Contains Selector
Lastly,"Attribute Contains Selector" Selects elements that have the specified attribute with a value containing the a given substring.
jQuery('[attribute*="value"]')
If you want to remove the divs which 'id' contains "ABC", your code goes something like this:
$('div[id*="ABC"]').remove();
The document is here
http://api.jquery.com/attribute-contains-selector/