jQuery Simpletip plugin to use the title attribute
问题 How can you make the SimpleTip plugin use each element's title attribute for the tooltip text when you're applying it to a group of elements? $('td[title]').simpletip({ content : << this element's title attribute >> }); 回答1: I think this will work for you $('td[title]').each(function() { $(this).simpletip({ content : $(this).attr('title') }); }); 回答2: $('td[title]').each(function() { $(this).simpletip({ content : $(this).attr('title') }); }); 回答3: I found a hack to do it: In the Simpletip