1
How, via Javascript or jQuery, I can remove or change to None the value of an attribute content of the css below:
.btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:before, .dl-horizontal dd:after, .dl-horizontal dd:before, .form-horizontal .form-group:after, .form-horizontal .form-group:before, .modal-footer:after, .modal-footer:before, .modal-header:after, .modal-header:before, .nav:after, .nav:before, .navbar-collapse:after, .navbar-collapse:before, .navbar-header:after, .navbar-header:before, .navbar:after, .navbar:before, .pager:after, .pager:before, .panel-body:after, .panel-body:before, .row:after, .row:before {
display: table;
content: " ";
}
I tried in many ways, without success:
<script>
$(document).ready(function () {
// $('.container').removeProp('content');
// $('.container').remove();
// $('.container').removeAttr('style');
// $(".container:after").prop("style").removeProperty("content");
// $(".container").removeProperty('content');
$(".container").css('content', 'none');
});
</script>
you cannot change pseudo elements via js/jquery, what you can do is add a class and change the content of the element when the class exists.
– haykou