Message from JavaScript discussions

July 2017

— Use .textContent

— 

Erm, event.target is from a mobile framework that i used i think 😅 i doesn't know if that event.target is from native js or customized one.

— Wait, gonna try that textcontext

— Textcontent*

— Replace event.target with document ?

— Uncaught TypeError: Cannot set property 'textContent' of null 🤔
replace event.target with document.getElementByClassName?

Message permanent page

— document.querySelector('ons-toolbar.center').textContent = el.nama;

— Well, no error, but the object isnt change.

— 🤔

— Or maybe im wrongly declare the element target?

— You are

— That should be with a space before .center