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?

demo

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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -