Get Attribute of hidden (display:none) html element
<p>How do I get the href attribute of a hidden element e.g.</p>

<pre><code>&lt;div style="display: none;"&gt;
&lt;div id="inline1" style="width:640px; height: 363px; overflow:hidden;"&gt;
&lt;a class="a.player" style="display: block; width: 640px; height: 360px; " href="http://myvideo.mp4"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;

var videolink = $('a.player').attr('href');

alert (videolink);
</code></pre>

<p>This will give an undefined value, any help would be great.</p>
