Uncaught TypeError: Cannot set property 'onclick' of null.
As seen below - we get this error in the Chrome CONSOLE .
As seen below - the alert created - is triggered and shown when we Click the 'X' for closing the MODAL .
Thus how can the 'X' having Class crossCloseMyModal2b, be NULL if we end up closing the MODAL - as required and also triggering an alert from within the span2b.onclick = function() , code ?
As seen below - we get this error in the Chrome CONSOLE .
As seen below - the alert created - is triggered and shown when we Click the 'X' for closing the MODAL . Thus how can the 'X' having Class
crossCloseMyModal2b
, be NULL if we end up closing the MODAL - as required and also triggering an alert from within thespan2b.onclick = function()
, code ?