Using prop instead of attr to fix compatibility with jQuery.serializeArray()