0
我已经开始开发使用jQuery手机和在android上进行验证,因为缺乏html5支持,我想我会尝试h5Validate。现在尽我所能,我不能让这个工作。我已经发布了我的意见,如果有人能够向我展示这个标记,我将不胜感激。由于jQuery Mobile h5Validate帮助
h5Validate链接:
http://ericleads.com/h5validate/?name=
HTML
<div data-role="fieldcontain">
<label for="slider">No of Boxes *</label>
<input type="range" name="slider" id="slider" data-h5-errorid="boxnumber" title="Required: Please enter your box(es)." required data-track-theme="a" value="0" min="0" max="10" required />
</div>
<div id="boxnumber" class="ui-state-error message" style="display:none;" data-theme="b">
脚本
<script>
$(document).ready(function() {
$('#login').h5Validate({
errorClass:'black'
});
});
</script>
CSS
.ui-state-error {
background-color:#BB1100;
color:white;
}
#login input, label {
float:left;
}
.message {
margin-left:1em;
width:20em;
border:1px;
padding:2px;
float:left;
font-size:10pt;
}
.black {
background-color:#111111;
color:silver;
}
这个问题不合理,不能保证回复?谢谢 – bollo