我正在尝试将inline/static
错误消息与jquery.validate
一起使用 - 与非自动生成的一样:
<p>
<label for="name">Name</label>
<input type="text" id="name_input" name="name" required="required" data-message="we'd like to know your name" />
<div for="name_input" class="error"><div class="arrow_tip_left"></div>did you forget your name?</div>
</p>
<p>
<label for="email">Email</label>
<input type="email" id="email_input" name="email" prompt="your email address" class="email" required="required" data-message="please enter a valid email address" />
<div for="email_input" class="error"><div class="arrow_tip_left"></div>please enter a valid email</div>
</p>
如何让.validate()
使用现有的错误消息而不是创建新消息?
干杯!