wp default jquery not work!

hi, my code not work for me but when use other jquery correctly work!

    (function($) {
let search_icon = $("#search-icon");
let search_form = $('#search-form > :input[type=search]');
search_icon.on('click', function () {
    search_form.toggleClass("search-active")
})
})(jQuery);

function code:
add_action('wp_enqueue_scripts', 'el_script');
function el_script(){

wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js',array( 'jquery' 
),'1.0.0',true );
}

check your browser console, there might be another script which is causing yours to not run, it’s hard to give you an answer without seeing the website as there are way too many variables.

console is blank :frowning: