From e3d3820890e824d9b604f8a0f267e350ab6e766d Mon Sep 17 00:00:00 2001 From: Alex Chao Date: Wed, 10 Jun 2015 09:05:19 +0800 Subject: [PATCH] Fix the password dot problem in IE7/8 simulated by IE9+ --- jquery.placeholder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.placeholder.js b/jquery.placeholder.js index 4bc7c8b..f47635f 100644 --- a/jquery.placeholder.js +++ b/jquery.placeholder.js @@ -161,7 +161,7 @@ if (input.type === 'password') { if (!$input.data('placeholder-textinput')) { try { - $replacement = $input.clone().attr({ 'type': 'text' }); + $replacement = $input.clone().prop({ 'type': 'text' }); } catch(e) { $replacement = $('').attr($.extend(args(this), { 'type': 'text' })); }