How to get hidden elements from DOM?

Steps:

  1. Open the application in the chrome browser

  2. Inspect the element

  3. Go to the console tab

  4. Paste this code : javascript:(function(){var newScript = document.createElement('script'); newScript.type = 'text/javascript; newScript.src = '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'; document.getElementsByTagName("head")[0].appendChild(newScript);})();
    setTimeout(function(){
    console.log($('#ELEMENT_Attribute').html());},18000);

  5. Mouse over on the element and wait