BootstrapAdmin/Bootstrap.Admin/Scripts/register.js

32 lines
852 B
JavaScript
Raw Normal View History

2016-11-06 16:01:14 +08:00
$(function () {
$('form').autoValidate({
userName: {
required: true,
maxlength: 50
},
displayName: {
required: true,
maxlength: 50
},
password: {
required: true,
maxlength: 50
},
description: {
required: true,
maxlength: 500
}
2016-11-06 16:01:14 +08:00
});
$('#btnAccount').click(function () {
var valid = $('form').valid();
if (valid) {
$('.setup-main').hide();
$('.steps li').toggleClass('current');
$('#loginID').text($('#userName').val());
$('#loginName').text($('#displayName').val());
$('#loginDesc').text($('#description').val());
2016-11-06 16:01:14 +08:00
$('.setup-confirm').show();
}
});
});