Zend certified PHP/Magento developer

Jquery not triggering for the change(function())

jQuery('input[name^="ko_unique_"]').trigger("change");
        
        jQuery('input[name^="ko_unique_"]').change(function() {
        var v = jQuery(this).val();
        console.log(v);
        if(v == 'simpleshipping_simpleshipping'){
            console.log('check');
            jQuery('#deliv-hold').show();
        }
        else{
            jQuery('#deliv-hold').hide();
        }
        });

The above-mentioned code is working fine on the console but when it is used in js. it does not execute after the second line.