how can i pass a variable inside a event handler to another event handler
$("#vaccines").find("a").click(function() {
var sendvaccineval = $(this).attr('id');
});
$("#options").find("a").click(function() {
var sendbuttonval = $(this).attr('id');
});
I'm planning to use the attribute of the first event handler to the second one
I have two modals so theres a modal inside a modal, in the second modal i need to use the attribute of the first modal