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

android - questions about switching from C2DM to GCM -

c++ - rosrun via ssh doesnt start a node properly -

Error C2280 mutex in a class C++ -