I am trying to add some jquery coding to the checkout page of this theme, but i am failing to catch an event.
when i use this code
- Code: Select all
$('#billing_last_name').click(function(){
alert($('input:radio[name=shipping_method]:checked').val());
});
i can get the value of the checked radio input.
But i just can't catch the click or change event of this radio input.
- Code: Select all
$( "input:radio[name=shipping_method]" ).click(function() {
alert( "Handler for .click() called." );
});
Actually, i can't catch anyevent on anything within the table tags in the shipping and paiement code.
Is it because it is on another php file?
Thank you for any clues, i have been trying for many days to make it work without success.