JS: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter is not of type ‘Element’
I had this same error showing. When I replaced jQuery selector with normal JavaScript, the error was fixed. var this_id = $(this).attr(‘id’); Replace: getComputedStyle( $(‘#’+this_id)[0], “”) With: getComputedStyle( document.getElementById(this_id), “”)