I am looking to add a JavaScript function to my confirmation button. I have created the elements off-page and fetched them using ajax, so it is crucial that I can set the function in-properties rather than via $('#id').confirmation()
So far, I have managed to make the confirmation pop up, but it does not execute the do_it function upon confirmation. (However, running do_it from the console works perfectly).
<button id="someid" class="btn" data-toggle="confirmation" data-onConfirm=do_it(1,2)>
ButtonText
</button>