Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><body>
- <div>This is the visible paragraph.</div>
- <a href="javascript:void(0);" id="show" onclick="document.getElementById('foo').style.display='block'; document.getElementById('hide').style.display='block'; this.style.display='none'">[ more ]</a>
- <div id="foo" style="display:none">This is the additional paragraph.</div>
- <a href="javascript:void(0);" style="display:none" id="hide" onclick="document.getElementById('foo').style.display='none'; document.getElementById('show').style.display='block'; this.style.display='none'">[ less ]</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement