Removing the CSS file

前端 未结 4 2067
时光取名叫无心
时光取名叫无心 2020-12-30 08:36

I am using spring MVC with jsp page for presentation, i have three tab suppose A,B and C in one jsp page. While clicking on A tab the css f

4条回答
  •  长情又很酷
    2020-12-30 09:05

    You just give that link tag an id or a class (say id="deleteMe") then remove it like below:

    $('head').find('link#deleteMe').remove();  
    

    So in your case add id to each file when you link them like this:

      
      
    
    

    Now to remove only Second.css, Third.css you have to write your jQuery like this:

    (function ($) {  
        $('head').find('link#aa').remove();  
        $('head').find('link#bb').remove();  
    })(jQuery);
    

提交回复
热议问题