使用JQuery验证失败时摇动文本框 [英] Shake textbox when validation fails using JQuery
本文介绍了使用JQuery验证失败时摇动文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在JQuery中验证失败时动摇输入类型文本。请有人告诉我怎么做。谢谢
I am trying to shake the input type text when validation fails in JQuery. Please someone tell me how it is to be done. Thanks
推荐答案
如果你有jqueryui,你可以
If you have jqueryui, you can
$( "#inputfield_id" ).effect( "shake" );
(将inputfield_id替换为输入字段的ID)。
(replace inputfield_id with the id of your input field).
这篇关于使用JQuery验证失败时摇动文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文