代码如下: <html> <head> [removed][removed] [removed] $(function(){ $(“#chk”).bind({ click: function(){ if($(this).attr(“checked”)){ $(“#passwd2”).val($(“#passwd”).val()); $(“#passwd”).hide(); $(“#passwd2”).show(); }else{ $(“#passwd”).