I want to toggle between 3 divs. Unfortunately it only works for 2 divs.
My code (for two divs):
$(function() {
$('#playerbargreen').hide();
$('#playerbaroff,#playerbargreen').click(function() {
$('#playerbargreen,#playerbaroff').toggle();
});
});
The end result must be:
show first div --> click --> hide first div and show second div --> Click --> hide second div and show third div
Has someone any idea? Thanks in advance!