<div class="entry-content">
<div class="vote gensmall">
<div class="vote-bar" title="Message reputation : 100% (1 vote)">
<div class="vote-bar-plus" style="height:50px;">
</div>
</div>
</div>
As you can see above the div witht he class .vote-bar I am trying to get the title, just a piece of it though. I just want the 1 vote 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.
I tried using
$('.vote-bar').attr('title',function(){
//function of title
});
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 so forth and so forth but I have barely used .attr()
http://jsfiddle.net/ayjtY/1/