2
我試圖使用inline/static
錯誤信息與jquery.validate
- 在未自動生成:如何使用靜態/聯錯誤消息以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()
使用現有的錯誤消息,而不是創建新的?
乾杯!