使用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).