Пожалуйста, найдите ниже разметку HTML вместе со сценарием validate.js (версия 1.13.1).
$(document).ready(function(){
$("#loginButton").on("click",function(){
//alert("logining in....");
//jQuery Validate Plugin: http://jqueryvalidation.org/ - 24/05/2015
$("#loginModal").validate({
rules:{
username:{
required:true,
minlength:6
},
password:{
required:true,
minlength:6
}
}
});
});
});
×
Sign In
Username
Password
Login
Unable to access your account?
Don't have an account? Register FREE
Подробнее здесь: https://stackoverflow.com/questions/304 ... -bootstrap
Мобильная версия