Fix placeholder value saved on form submit in IE
Change-Id: I8bb0ed5fda322e594604635d53b87ac91721507d
This commit is contained in:
parent
7955c21359
commit
356474031d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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('');
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue