Han
7 years agoAce
Jquery Uncaught TypeError
Hi all, I'm trying to update the functionality for the print page functionality. My code is: <@liaAddScript>
;(function($){
<#-- print button to open in new window-->
$('.lia-compone...
Han,
Your code seems to me working perfectly fine. Is there more information you can share on this. After looking into the error you have shared above is not due to the print jQuery code you have added the latest.
Cannot read property 'setAttribute' of null
Its the separate function which you are using to setAttribute which cause due to the empty variable found.
Parshant, I've tested with all other JS removed, and I am still getting the error. There is also nowhere in any code I have added in where I am attempting to use "setAttribute".
Oddly enough, my block of jQuery above is working today. I would still like to know what the error is, as it seems to cause unpredictable behaviour with my js functionality.