Jquery Document Ready function not working properly

  • 1
  • Problem
  • Updated 2 years ago
  • In Progress
Hi i have the following function in inline js file. It is working only for Default and classic themes. Not working for remaining themes..

$(document).ready(function(){
 function openDrawer() {
$(".NewTable .sk-icon-preview").trigger("click");
};
openDrawer();
});
Photo of Vijayakrishna

Vijayakrishna

  • 642 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
My guess is that the other themes do not have the .sk-icon-preview   Change your icon to something that all themes can access