jquery - how to make a javascript covered slideup? -
when first click answer text area, pop message box
your answer contributing answer stack overflow! please make sure answer question; q&a site, not discussion forum. provide details , share research. avoid statements based solely on opinion; make statements can appropriate reference, or personal experiences.
i struggling implement in own system. have checked jquery slideup function, slides text message box down not up.
does 1 know how implement it?
i assuming uses javascript animation.
i'm not sure want, this it? think want use .slidetoggle()
html
<textarea></textarea> <div class="msg"> 谢谢你!! </div>
jquery
$(".msg").slidetoggle(); $("textarea").focus(function(){ $(".msg").slidetoggle(); }); $("textarea").blur(function(){ $(".msg").slidetoggle(); });
what want appear , when?
Comments
Post a Comment