You can register the click events at a root level instead of by finding the individual elements and assigning a click event to them.
https://api.jquery.com/on/ and the older method https://api.jquery.com/live/
jQuery(document).ready(function($) {
$(document).on('click', '.vote-a, .vote-b', function() {
//do stuff
});
$(document).on('click', '.vote-b', function() {
//do other stuff
});
});