jQuery add attributes to div
<p>I do not believe that any of the questions I have searched on here answers this for me.</p>

<p>I am trying to set a attribute on a div when a link is clicked. I can't get it to set the attr() for the div no matter what I do. I believe that attr() is the right way to go and looking for some help if not moving forward in the right direction.</p>

<p>I am doing fairly straight forward use case:</p>

<pre><code>&lt;a href="#"&gt;Click here to set&lt;/a&gt;
&lt;div id="subs"&gt;This will have title added to the div&lt;/div&gt;

$(function() {
  $('a').on('click', function() {
   $('#subs').attr('title','Test Title');
  });
});
</code></pre>

<p>Here is the fiddle: <a href="http://jsfiddle.net/pertrai1/L55Rc/" rel="nofollow">http://jsfiddle.net/pertrai1/L55Rc/</a></p>
