javascript - getElementById can't find rendered div -


i have in function success handler google wallet (for digital goods):

var elem = document.getelementbyid(div1); 

i checked debugger , value of variable div1 same id of div see 'inspector' (in firefox) know it's rendered. besides, page shown, , after clicking button google wallet popup appear.

so why elem null? (and how solve this?)

thanks comment sergio found value of variable not correct 1 - instead of being "abc" "abc ". (-with space @ end.)


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -