jQuery get attr title piece
<pre><code>&lt;div class="entry-content"&gt;
  &lt;div class="vote gensmall"&gt;
  &lt;div class="vote-bar" title="Message reputation : 100% (1 vote)"&gt;
&lt;div class="vote-bar-plus" style="height:50px;"&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>As you can see above the div witht he class <code>.vote-bar</code> I am trying to get the title, just a piece of it though. I just want the <code>1 vote</code> and that is it. Basically I am doing this to get how many votes the person has and it changes in the title of the this div.</p>

<p>I tried using</p>

<pre><code>$('.vote-bar').attr('title',function(){
//function of title
});
</code></pre>

<p>More like, thats how far I've gotten, and I am not even sure where else to go now. or if I did the function correctly. I am still still learning and I am asking for help. I've searched through all the items and could not find what exactly I needed. I can call a jQuery code to pass if the title is <code>so forth and so forth</code> but I have barely used <code>.attr()</code></p>
