I am loading a modal in a page that the user can then interact with.
var global_id=$(this).data('global-id');
var other_global_id=$(this).data('other-global-id');
var comment=$('#pairing-comment').val(); // <- this is not working!!!
but I'm not sure how to access this properly. I've tried scoping it but maybe this can't be done although I think it can me. Here it is console:
so this is happening in response to a user event so it's definitely happening later.
$(document).on('click','#comment-submit', function(){
arc_eh.event_handler.submit_pairing_comment.call(this);
});