Replace setter calls .attr('value', ...) with .val(...) in order not to break jquery 'change' event listeners