-5
rated 0 times
[
2]
[
7]
/ answers: 1 / hits: 32003
/ 14 Years ago, thu, march 3, 2011, 12:00:00
I want to create the simplest bookmarklet for my browser.
javascript:document.getElementsByClassName('source').style.visibility='visible';
I have multiple div.source in my body. By default they are set to .source { display:none; }
with css.
My console tells me: Uncaught TypeError: Cannot set property 'display' of undefined
When I click the bookmarklet all .source divs should be visible. What am I doing wrong here?
More From » element