javascript - Super div set value -


main code:

<div is="superdiv"> </div>  superdiv_prototype.createdcallback = function(){     this.innerhtml = "init value"; }  //register element 

but can not work.

any 1 can me?

your missed prototype statement

superdiv_prototype.prototype.createdcallback = function(){ this.innerhtml = "init value"; }


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -