Only Bolivian Here
Only Bolivian Here

Reputation: 36733

Radiobutton change event with jQuery doesn't fire

Here's a JSFiddle example so you see what I mean:

http://jsfiddle.net/stapiagutierrez/yVzR5/

The event is supposed to fire on the selection of the payment option change, but it's only firing when I specifically click on the radio button.

Any ideas?

Upvotes: 2

Views: 1342

Answers (1)

realshadow
realshadow

Reputation: 2585

You will need to trigger the event yourself

    $('.paymentoption').click(function () {
        $(this).find('input[name="paymenttype"]').prop('checked', true).change();

        // or trigger('change');
    });

Upvotes: 5

Related Questions