Guest_imported
New member
- Jan 1, 1970
- 0
- 0
- 0
Hi, (newbie alert!)
<input type="button" onclick="document.all.hideMe.style.visibility= 'hidden';">
<div id="hideMe"></div>
..this would hide the div on button click.
But how could I hide several elements that have the same id? - also it must be inline code, like above.
Such as -
<div id="hideMe">Hide me on button click</div>
<div id="hideMe">Hide me also on button click (with same id)</div>
Cheers,
Dave
<input type="button" onclick="document.all.hideMe.style.visibility= 'hidden';">
<div id="hideMe"></div>
..this would hide the div on button click.
But how could I hide several elements that have the same id? - also it must be inline code, like above.
Such as -
<div id="hideMe">Hide me on button click</div>
<div id="hideMe">Hide me also on button click (with same id)</div>
Cheers,
Dave