Ah sorry forgot to mention that I also changed
$('#recruitmember').click(/* ... */)
to
$('#add_me').submit(/* ... */)
so that event.target
refers to the form, not the submit button. Apart from that both variants are mostly equivalent here, but you’ll have to use either of them – there’s no submit
event getting dispatched on a button.