Authored by wenjiekong

重新验证时,清除学生认证表单

... ... @@ -270,6 +270,21 @@ function requestCoupon(id) {
});
}
function clearForm() {
$('#stu-name').val('');
$('#stu-idNum').val('');
$('#stu-school').val('');
$('#stu-edu').val('');
$('#stu-entrance-year').val('');
$('#prompt').html('');
$('#agreen-show').removeClass('active');
$stuProv.html('请选择省份');
$stuSchool.html('请选择您所在学校');
$stuEdu.html('请选择您的学历');
$stuYear.html('请选择您的入学年份');
}
$('.slide-container').slider({
orient: true
});
... ... @@ -378,7 +393,8 @@ $('#stu-entrance-year-ul').delegate('li > a', 'click', function() {
});
// 重新验证
$identityWrap.delegate('.backForm','click', function() {
$identityWrap.delegate('.backForm', 'click', function() {
clearForm();
$identityForm.removeClass('hide').siblings().addClass('hide');
});
... ...