javascript - stop() before a highlight is causing the color to not reset -


i have following:

$('#list_item_title', this).stop().effect('highlight', {color: '#8dd2f7'}, 700); 

this occurs when user tries submit 0 input.length. if user presses enter several times, highlights stack why added stop. problem animation stops , input color variation of highlight color , not neutral white background.

any ideas?

stop() accepts parameters.

.stop( [clearqueue,] [jumptoend] ) 

stop api documentation

you should invoke in way:

$('#list_item_title', this).stop(false, true).effect('highlight', {color: '#8dd2f7'}, 700); 

by doing so, color changed directly #8dd2f7 when stop animation.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -