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++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -