见:http: //jsfiddle.net/Kn3v5/205/
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
<div>
<form id="everything">
<label for="dd1">Select the best option</label>
<br/>
<select name="dd1" id="dd1" class="required">
<option value="">None</option>
<option value="o1">option 1</option>
<option value="o2">option 2</option>
<option value="o3">option 3</option>
</select>
<br/>
<br/>
<input id="agreement" name="agreement" type="checkbox"><b> I accept the TOS</b>
<br/>
<input type="submit" />
</div>
</form>
我有多个字段在其右侧显示错误消息。我的问题是,复选框的验证消息出现在复选框及其标签之间。
[复选框]
[validation message] [label]
但我想要这样:
[复选框] - [标签]
[验证消息]
我怎样才能做到这一点?提前致谢!