Fix placeholder value saved on form submit in IE

Change-Id: I8bb0ed5fda322e594604635d53b87ac91721507d
This commit is contained in:
efedorova 2013-10-03 19:40:32 +04:00
parent 7955c21359
commit 356474031d
2 changed files with 11 additions and 2 deletions

View File

@ -6,5 +6,5 @@ input[type=radio].data-grid, input[type=checkbox].data-grid {
}
.data-grid table {
margin-bottom: 5px ! important;;
margin-bottom: 5px ! important;
}

View File

@ -33,5 +33,14 @@ $(function() {
input.val(input.attr('placeholder'));
}
}).blur();
}
$('[placeholder]').parents('form').submit(function() {
$(this).find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
})
});
}
});