Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href='#' onclick = '$(this).toggleClass('hidden'); return false;'>Some link</a>
- .hidden{display: none;}
- <a href = '' onclick='showSome(this)' target ='additional'>Some description</a>
- function showSome(obj){
- obj.style.display = 'none';
- var target = obj.getAttribute('target');
- document.getElementById(target).style.display = 'block';
- return false;
- }
Add Comment
Please, Sign In to add comment