No rocket science here but I thought I’d blog this for my own future reference. Just a handy little script to have about.
function toggle(elementID){
var target1 = document.getElementById(elementID)
if (target1.style.display == 'none') {
target1.style.display = 'block'
} else {
target1.style.display = 'none'
}
}
Just give the element you want to ‘toggle’ on and off an ID and then pass that to this script.
<a href="javascript: toggle('track_list_2');">Show/Hide</a>
That’s all. :)
Play online poker at Full Tilt Poker and PokerStars. The best online poker rooms still open to US players. welike-Poker.com provides unbiased and critical online poker room reviews.
|
The 10 most recent articles.
A selection of noteworthy sites, articles or neat 'stuff'.
This week I am mostly reading...
Subscribe to:
Matthew Pennell
Feb 16, 12:05 PM
Nathan Pitman
Feb 16, 01:15 PM
Andrew Strachan
Feb 17, 04:28 PM
Pawel Grabowski
Feb 18, 02:53 AM
Nathan Pitman
Feb 19, 02:28 PM
Nathan Smith
Feb 20, 03:59 AM
Nathan Pitman
Feb 20, 09:43 AM
karmoosh
Oct 4, 06:04 PM
tenks natran
Oct 21, 06:04 PM
Max
Nov 18, 09:14 AM