fadeOut() jquery in wordpress not working

enter image description here

this code in ‘script.js’:

jQuery(document).ready(function($) {

$('#close').click(function(){
        $('#tofes').fadeOut();
        s1.empty();
        s2.empty();
        s3.empty();
        $('#date_div').empty();
     $("#step-form-2, #step-form-1, #step-form-3").delay(200).queue(function(){
        $("#step-form-2").removeClass("col-md-6 col-md-4").addClass("d-none");
        $("#step-form-1").removeClass('col-md-6 col-md-4').addClass('col-md-12');
        $('#step-form-3').removeClass('col-md-4').addClass('d-none');
        $(this).dequeue();
    })
  })    
});

the code not working:

“Uncaught TypeError: $(…).fadeOut is not a function”

Read more here:: fadeOut() jquery in wordpress not working

Leave a Reply

Your email address will not be published. Required fields are marked *