can I add a function to this jquery? -
probably simple 1 cannot working, want add simple fade in appearing text triggered jquery (with great mr. rao):
$('.col').on('mouseover',function() { $('.grafischewerktekst').text($(this).attr('data-desc')) });
i guess need :
function(){ $(this).fadein('slow'); }
but how , fit correctly have not figured out yet?
if following html , css given, can change jquery code follows.
html
<a href="#" class="col" data-desc="description">link</a> <div class="grafischewerktekst">some div</div>
css
.grafischewerktekst { display:none }
jquery
$('.col').on('mouseover',function() { $('.grafischewerktekst').text($(this).attr('data-desc')).fadein("slow"); });
Comments
Post a Comment