Set readonly property with javascript by .prop instead of .attr

This commit is contained in:
Julius 2014-01-02 21:17:55 +01:00 committed by wvengen
parent 98f59a3de3
commit 2ec3d38238

View file

@ -62,8 +62,7 @@
} }
function unlock_receive_input_field() { function unlock_receive_input_field() {
var order_article_entry = $(this).closest('tr'); $('.units_received', $(this).closest('tr')).prop('readonly', false);
$('.units_received', order_article_entry).removeAttr('readonly');
$(this).remove(); $(this).remove();
} }