Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery验证文本对齐_Jquery_Css_Validation - Fatal编程技术网

jquery验证文本对齐

jquery验证文本对齐,jquery,css,validation,Jquery,Css,Validation,使用 见: 但我希望这样: [复选框]-[标签] [验证消息] 我怎样才能做到这一点?提前谢谢 将float:left添加到复选框中,并使用文本框切换消息 <label for='agreement'> I accept the TOS</label> <input id="agreement" name="agreement" type="checkbox" style = 'float:left' /> <br/>

使用

见:

但我希望这样:

[复选框]-[标签]

[验证消息]

我怎样才能做到这一点?提前谢谢

将float:left添加到复选框中,并使用文本框切换消息

 <label  for='agreement'> I accept the TOS</label>
    <input id="agreement" name="agreement" type="checkbox" style = 'float:left' />

        <br/>
    <input type="submit" />
我接受TOS


这是我要找的


选择最佳选项

没有一个 选择1 选择2 选择3

我接受托斯

看看:BIOS。这看起来像我正在看的,但是你知道我在哪里可以找到一个完整的示例(最好是JSFIDLE)这解决了定位问题,但不幸的是,我仍然需要弄清楚如何设置其中一个字段的位置
          [validation message] [label]
 <label  for='agreement'> I accept the TOS</label>
    <input id="agreement" name="agreement" type="checkbox" style = 'float:left' />

        <br/>
    <input type="submit" />
<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/>
        <label for='agreement'>I accept the TOS</label>
        <input id="agreement" name="agreement" type="checkbox" style='float:left' />
        <br/>
        <div id="everything2"></div>
        <input type="submit" />
    </form>
</div>