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
Post a Comment