Change to setposition by class for JS
<p>Here is a code: <a href="http://jsfiddle.net/QQaZp/1/" rel="nofollow noreferrer">http://jsfiddle.net/QQaZp/1/</a></p>

<pre><code> var setPosition = function() {
    $('div').css('top', ($(window).height()-50));
}

$(window).ready(function(){
    setPosition();
}).resize(function(){
    setPosition();
});
</code></pre>

<p>I would like to add a class to the div. Ex:</p>

<blockquote>
  <p>div class="name"</p>
</blockquote>

<p>and then use that class in the JS that is in the fiddle.</p>

<p>What would be the new code?  Thanks!</p>