2011-01-11 80 views

回答

0

你可以看看這裏的文檔:http://docs.jquery.com/Plugins/Validation

您定義.error風格和jQuery驗證上創建的元素需要(爲下一個同級輸入欄)。

這裏是他們的樣本樣式:

label.error { float: none; color: red; padding-left: .5em; vertical-align: top; } 

這裏是錯誤創建的元素的例子:

<label for="cname" generated="true" class="error">Please enter at least 2 characters.</label>