css - html Input Button onclick=display:None -


i placed html button on page , want hide or show control. following code not working

<input type="button" name="button1" value="show/hide phonetics search" onclick="document.getelementbyid('msozonecell_webpartwpq7').style.display='none';" style="width: 225px; height: 40px;"/> 

it's getelementbyid (lower-case d, case-sensitive).

http://jsfiddle.net/nnnzc/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -