How could i find out the shipping method that the customer has chosen right after click of change?
I have tried to get shipping methods id or value that customer has chosen when he/she has clicked on radio button. The code I am using is:
require(['jquery'], function ($) {
$(document).ready(function () {
$( '.radio' ).click(function() {
console.log('Test');
});
});
});
When i refresh the page then radio buttons are coloured grey and nothing in log after click. I have tried also with jQuery .on('change', function () {...}
. I think that the problem is that inside input element has written data-bind="checked:... clicked:... "
. What can i do to get shiping method id or value?