$(document).ready(function() { // #login-box password field $(\'#password\').attr(\'type\', \'text\'); $(\'#passwo
jQuery.fn.outerHTML = function() { return $(this).clone().wrap('').parent().html(); }; $('input#password').replaceWith($('input.password').outerHTML().replace(/text/g,'password')); 0 讨论(0) 查看其它29个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复