javascript - innerHTML with NodeJS and Jade -


i'm trying change value of number displayed jade javascript. have paragraph id number, in javascript , try change using innerhtml, nothing happens.

p#number 0 

above how paragraph defined in jade.

then element in javascript , attempt change value so.

var number = document.getelementbyid("number"); number.innerhtml("1"); 

the object returned document.getelementbyid not null, .value() of object undefined.

innerhtml isn't function.

number.innerhtml = "1"; 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -