jQuery form animation on submission

What is the best way of fading out a form and fading in the results when using the jQuery form plugin? (http://jquery.malsup.com/form/#getting-started)
Well there are fadeIn and fadeOut functions (api.jquery.com/fadeIn) in jQuery that you can use. I suggest that you wrap your
in some block-element, like a
. Then you can do $('#formwrapper').fadeOut(); when requesting, and use fadeIn on the response element.

以上就是jQuery form animation on submission的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准