<div class="fox-copyright" style="padding:10px 0 !important;text-indent:0 !important"><a target="_blank" title="Joomla contact form" href="http://www.fox.ra.it/" style="visibility: visible !important; display: inline !important; font-size:10px !important;">powered by fox contact</a></div> 

I am trying to remove div.fox-copyright from the page with all its contents - I tried using the methods jquery - remove (), detach () and empty (), but nothing works. Why is that? How to delete the div.fox-copyright element and all its contents?

    2 answers 2

    @ eprivalov1 , the author did not shaman. The html-code of the page (what you see when you click "View page code") is what came from the server. The DOM tree (document object model) is what you see in the browser console, it is a completely different steppe. With jquery, javascript, you manipulate the DOM tree, not the page code.

      Bad trying :)

       $('.fox-copyright').remove(); 

      Example: http://jsfiddle.net/Lmuna49f/

      And copyright hiding is not good: 3

      • Hide, this is if in css set display: none; This is not good, but delete the rules. - MasterAlex
      • $('.fox-copyright').remove(); - for some reason it does not remove the html code from the page, although there are no errors in the console. - spoilt
      • @eprivalov1 in the example after all deletes. :) Is jQuery exactly connected? - Bastiane
      • @Bastian jQuery 100% included, I have already removed the html code from the output in the PHP file. Using jQuery and JavaScript can’t be deleted at all. Apparently, the author of the plugin nasamanil something so that the links are not deleted. - spoilt