tooltip - jquery tool tps not showing -
i have learning game i'm designing. have 6 categories randomly loading , want display dynamic description of category.
function loadcategories() { var = 0; var j = 0; $(".categoryname").each( function() { $(this).attr("title",descriptions[categoryindex[i]]); $(this).text(category[categoryindex[i]]).delay(500 * i); console.log("category "+ categoryindex[i] + ": "+category[categoryindex[i]]+"\ttitle: " + descriptions[categoryindex[i]]); $(this).fadein(2000,"blind"); for(j = 0; j < 5; j++) { $(".value[index="+ (5*i + j) + "]").attr("answerid",categoryindex[i]*5 + j); } i++; }); }
i can see title each category beingness assigned in console log. however, @ runtime see tooltips lastly 3 categories.
i envoke tooltip in
$(document).ready( function () { // other code parse xml info file $(document).tooltip(); // });
each categoryname span looks like:
<span class="categoryname" title=""></span>
until title set above code. when @ code @ runtime shows correctly like:
<span class="categoryname" title="tooltip">category name</span>
any thoughts on why not working?
jquery tooltip
No comments:
Post a Comment