Showing
1 changed file
with
17 additions
and
1 deletions
@@ -270,6 +270,21 @@ function requestCoupon(id) { | @@ -270,6 +270,21 @@ function requestCoupon(id) { | ||
270 | }); | 270 | }); |
271 | } | 271 | } |
272 | 272 | ||
273 | + | ||
274 | +function clearForm() { | ||
275 | + $('#stu-name').val(''); | ||
276 | + $('#stu-idNum').val(''); | ||
277 | + $('#stu-school').val(''); | ||
278 | + $('#stu-edu').val(''); | ||
279 | + $('#stu-entrance-year').val(''); | ||
280 | + $('#prompt').html(''); | ||
281 | + $('#agreen-show').removeClass('active'); | ||
282 | + $stuProv.html('请选择省份'); | ||
283 | + $stuSchool.html('请选择您所在学校'); | ||
284 | + $stuEdu.html('请选择您的学历'); | ||
285 | + $stuYear.html('请选择您的入学年份'); | ||
286 | +} | ||
287 | + | ||
273 | $('.slide-container').slider({ | 288 | $('.slide-container').slider({ |
274 | orient: true | 289 | orient: true |
275 | }); | 290 | }); |
@@ -378,7 +393,8 @@ $('#stu-entrance-year-ul').delegate('li > a', 'click', function() { | @@ -378,7 +393,8 @@ $('#stu-entrance-year-ul').delegate('li > a', 'click', function() { | ||
378 | }); | 393 | }); |
379 | 394 | ||
380 | // 重新验证 | 395 | // 重新验证 |
381 | -$identityWrap.delegate('.backForm','click', function() { | 396 | +$identityWrap.delegate('.backForm', 'click', function() { |
397 | + clearForm(); | ||
382 | $identityForm.removeClass('hide').siblings().addClass('hide'); | 398 | $identityForm.removeClass('hide').siblings().addClass('hide'); |
383 | }); | 399 | }); |
384 | 400 |
-
Please register or login to post a comment