Is there any way to remove a <style> tag from the page using jquery?
and i need to remove particular style tag.
Thanks.
If you want to remove a specific style tag, you can add a class (or id) to it and then use remove() to remove that class. I have tested it and it works. I am not sure this should be allowed, but if you have no other options...
HTML
<style class="style-tag">
p {
color: #000;
}
</style>
JQuery
$('.style-tag').remove();
$(document).ready(function(){
$('style').remove() ;
});
$('style').remove() ;?