0
$('.product_name:radio').click(function() {get_products()} );

get_products() never gets called because this radio button was created after the page loaded.

I've tried the following, but they do not work.

$('.product_name:radio').on('click', function(){
    get_products() });

$('product_name.body').on('click', '.product_name:radio', function(){
    get_products()});

What is the correct way to do this?

david
  • 6,303
  • 16
  • 54
  • 91

0 Answers0