I am adding a script to a page via SMT that is sup...
# suitecommerce
p
I am adding a script to a page via SMT that is supposed to turn off the links on a table:
Copy code
$('.order-history-list-recordviews-actionable-table a').replaceWith(function() {
    return $.text([this]);
});
This works fine in SMT but when I publish and then get out of SMT to test the script is not firing. Am I missing something?
s
Probably order of execution. Probably should wrap it in an event listener that waits for the DOM to be ready first