Why not `input.attr('type', 'hidden')`?