changepwd.js 975 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. $(function(){
  2. $(".signin-form").validate({
  3. submitHandler:(form) => {
  4. jpalert($(".signin_success").val(),"../lanhu/index.html")
  5. }
  6. });
  7. $(".form-control").on("input",function(evn){
  8. //console.log('input');
  9. let $icon=$(this).siblings('.input-tool-icon');
  10. if($(this).val().length>0){
  11. $icon.show();
  12. }
  13. else{
  14. $icon.hide();
  15. }
  16. });
  17. $(".form-group-custom").on("click",".glyphicon-remove",function(evn){
  18. $(this).siblings('.form-control').val('');
  19. $(this).hide();
  20. });
  21. $(".form-group-custom").on("click",".glyphicon-eye-open",function(evn){
  22. $(this).siblings('.form-control').prop('type','text');
  23. $(this).removeClass('glyphicon-eye-open');
  24. $(this).addClass('glyphicon-eye-close');
  25. });
  26. $(".form-group-custom").on("click",".glyphicon-eye-close",function(evn){
  27. $(this).siblings('.form-control').prop('type','password');
  28. $(this).removeClass('glyphicon-eye-close');
  29. $(this).addClass('glyphicon-eye-open');
  30. });
  31. });