Fix compatibility with jQuery.serializeArray()

jQuery.serializeArray was not able to correctly parse the value of the hidden select element. When I modified the code that updates the hidden select to use jQuery.prop rather than attr, serializeArray works again.