Target href of object clicked not first object of collection

When you target a group of jquery objects `$('a.confirm').confirm()`
the href of the first object in the array is used as the submit url, instead of the href of the object clicked. This leads to the incorrect action being taken when the action is confirmed.