javascript - jQuery text change smoothly -
i have following html , jquery code warn users using 'remember me' check box follows:
in html:
<input type="checkbox" id="remember" name="remember"> remember me <span id="remember_feedback"></span>
in script:
$('#remember').change(function(){ if(this.checked){ $('#remember_feedback').text('(don\'t use on public computer)'); }else{ $('#remember_feedback').text(''); } });
it works fine text smoothly / changes i've seen on sites not pops in , out now, possible without using plugins?
you can this:
$('#remember').change(function(){ if(this.checked){ $('#remember_feedback').hide().text('(don\'t use on public computer)').fadein('slow'); }else{ $('#remember_feedback').fadeout('slow'); } });
Comments
Post a Comment