0
私はそうのようなユーザーに素敵なタイトルタグを表示するように設定ツールチップを持っている...要素のライブ値を取得するtitle - jquery?
$('.toolTips').live('mouseover', function() {
this.tip = this.title;
$('body').after('<div class="toolTip">' + this.tip + '</div>');
$('.toolTip').hide().fadeIn();
this.title = '';
});
$('.toolTips').live('mouseout', function() {
$('.toolTip').remove();
this.title = this.tip;
});
$('.toolTips').click(function() {
$('.toolTip').fadeOut();
});
唯一の問題は、
$(this).attr('title', 'Why won\'t you work!');
、私は時々のような要素のタイトルの値を変更する必要があります
しかし、私のツールチップ機能は、元のhtmlタイトルを表示し、jqueryによって割り当てられた新しいタイトルを表示しませんか?
どのようなアイデアですか?
おかげ
[jsFiddle](http://jsfiddle.net/)を作成してください、私たちが作業するための問題を示しています。 –