Execute
Save
Share
Share link
share
share
share
Team
Public Teams
Comments
0
Created By:
Guest
Title:
jQuery hide and show collapse
Title
Description
Edit
Copy Link
Login
Email *
Password *
Login
OR
Create Account
Screen Name *
Email *
Password *
Retype Password *
Team Access Code
Register
Public CodeBins
HELP
--Select Theme--
Ambiance
Blackboard
Cobalt
Eclipse
Elegant
Erlang-Dark
Lesser-Dark
Monokai
Neat
Night
Rubyblue
Vibrant-Ink
Xq-Dark
New CodeBin
CodeBins Versions
jQuery hide and- V.42
jQuery hide and- V.41
jQuery hide and- V.40
jQuery hide and- V.39
jQuery hide and- V.38
jQuery hide and- V.37
jQuery hide and- V.36
jQuery hide and- V.35
jQuery hide and- V.34
jQuery hide and- V.33
jQuery hide and- V.32
jQuery hide and- V.31
jQuery hide and- V.30
jQuery hide and- V.29
jQuery hide and- V.28
jQuery hide and- V.27
jQuery hide and- V.26
jQuery hide and- V.25
jQuery hide and- V.24
jQuery hide and- V.23
jQuery hide and- V.22
jQuery hide and- V.21
jQuery hide and- V.20
jQuery hide and- V.19
jQuery hide and- V.18
jQuery hide and- V.17
jQuery hide and- V.16
jQuery hide and- V.15
jQuery hide and- V.14
jQuery hide and- V.13
jQuery hide and- V.12
jQuery hide and- V.11
jQuery hide and- V.10
jQuery hide and- V.9
jQuery hide and- V.8
jQuery hide and- V.7
jQuery hide and- V.6
jQuery hide and- V.5
jQuery hide and- V.4
jQuery hide and- V.3
jQuery hide and- V.2
jQuery hide and- V.1
Compare Versions
Recent CodeBins
View All CodeBins
$(function() { //Show Default First div is Active $("#panel .box:first").show(); $("#panel a").click(function() { $("#panel .box").hide(1000); $(this).next(".box").slideDown("fast"); return; }); });
Bottom of Page
In Head
On Load
On Ready
Setting
Validate
Copy
Format
.box{ border:1px solid #334478; width:400px; height:50px; background:#f7a8a5; margin-top:3px; /* Default All Divs Are Hidden*/ display:none; float: right; } #panel a{ display:block; font-size:15px; } .box p{ text-align:justify; }
Setting
Validate
Copy
Format
<div id="panel"> <a href="#"> Show Default </a> <div class="box"> <p> Default Div Box is already Active..! </p> </div> <a href="#"> Show Box1 </a> <div class="box"> <p> Showing gffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdgggggggggggggggggggggggtfddfdfdfdsfdf Box 1..! </p> </div> <a href="#"> Show Box2 </a> <div class="box"> <p> Showing Div Box 2..! </p> </div> <a href="#"> Show Box3 </a> <div class="box"> <p> Showing Div Box 3..! </p> </div> <a href="#"> Show Box4 </a> <div class="box"> <p> Showing Div Box 4..! </p> </div> </div>
No Doc Type
HTML5
HTML 4.01 Transitional
HTML 4.01 Strict
HTML 4.01 Frameset
XHTML 1.1
XHTML 1.0 Transitional
XHTML 1.0 Strict
XHTML 1.0 Frameset
Copy
Format
Download
×
Code Description
×
Difference of Versions
HTML
CSS
JS
×
JS Error
×
CSS Error
Errors
Warnings
×
JavaScript Setting
JS Libraries:
Chrome Frame 1.0.3
Dojo 1.8.0
Dojo 1.7.3
Dojo 1.7.2
Ext Core 3.1.0
jQuery 1.8.0
jQuery 1.7.2
jQuery 1.6.0
jQuery 1.5.0
jQuery 1.4.4
jQuery 1.4.0
jQuery-min 1.7.2
jQueryUI-min 1.8.21
MooTools more-1.4.0.1-full
MooTools core-1.4.5-full
MooTools core-1.4.1-full
Prototype 1.7.1.0
script.aculo.us 1.9.0
SWFObject 2.2
Twitter Bootstrap 2.0.4
WebFont Loader 1.0.28
yui 3.5.1
User Libraries:
Upload File
JavaScript URL(s):
×
CSS Setting
CSS Libraries:
jQueryUI 1.8.21
Twitter Bootstrap 2.0.4
User Libraries:
Upload File
CSS URL(s):