I have the following 3 actions that essentially check a radio button when a label is clicked. is there a way to write these as one function as opposed to 3 individual ones?
$("input[name='customOrder-qty']").on('click', function() {
$('#qtyPackage-custom').prop('checked', true);
});
$("input[name='customOrder-price']").on('click', function() {
$('#qtyPackage-custom').prop('checked', true);
});
$("input[name='customOrder-name']").on('click', function() {
$('#qtyPackage-custom').prop('checked', true);
});
thank you
customOrder-