Jquery Document Ready function not working properly

Hi i have the following function in inline js file. It is working only for Default and classic themes. Not working for remaining themes…

 function openDrawer() {
$(“.NewTable .sk-icon-preview”).trigger(“click”);

My guess is that the other themes do not have the .sk-icon-preview   Change your icon to something that all themes can access