$.ajax data and sucess

$.ajax data and sucess

I have recently gotten with the times and upped to the latest jQuery (yea me).

I also have lost touch with my programmer (my bad).

Can someone help with updating this code to work with my new jQuery v3.3.1. Much appreciated..

  <script>
   $(function() { 
    $(".pollradiovote").live("click", function() { 
     var pid = $(this).attr('pid');
     var vid = $(this).attr('value');
     
     $.ajax({ url: '/includes/polls.cfc?method=vote', data: "pid=" + pid + "&vid=" + vid, success: function(data) {
       $("##poll-data-" + pid).html(data);
      }
     });
     
    });
   });
  </script>