任何可以帮助我???我试图在bootstrap 3中运行轮播幻灯片和验证。在我插入验证脚本后,轮播无法正常工作
我曾多次尝试应用noConlict(),但仍然无效。 这里有我的脚本
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/bootstrap.js"></script>
<script type="text/javascript">
var jq=$.noConflict();
jq('document').ready(function(){
jq('form').validate({
rules: {
firstname: {
minlength: 3,
maxlength: 15,
required: true
},
lastname: {
minlength: 3,
maxlength: 15,
required: true
},
country: {
required: true
},
email: {
required: true
}
},
highlight: function(element) {
$(element).closest('.form-group').addClass('has-error');
},
unhighlight: function(element) {
$(element).closest('.form-group').removeClass('has-error');
},
errorElement: 'span',
errorClass: 'help-block',
errorPlacement: function(error, element) {
if(element.parent('.input-group').length) {
error.insertAfter(element.parent());
} else {
error.insertAfter(element);
}
}
window.location.href('seminar.php?module=success');
});
jq('#myCarousel').carousel({
interval:3000
});
jq('#myCarousel').carousel('cycle');
});
</script>