Skip to content

Commit

Permalink
Merge pull request #261 from Alex1990/fix-ie-password-dot
Browse files Browse the repository at this point in the history
Fix the password dot problem in IE7/8 simulated by IE9+
  • Loading branch information
amerikan committed Jun 10, 2015
2 parents d8daa7f + e3d3820 commit fb83620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
}
Expand Down

0 comments on commit fb83620

Please sign in to comment.