SlideShare a Scribd company logo
1 of 1
Slide Toggle
#show-
button{padding:0;background:#555;color:#3498db;cursor:pointer;display:inline-
block}
#show-widget{display:none;text-align:left;background:#555;color:#fff;padding:0}
<script type='text/javascript' src='jquery-1.10.2.min.js'></script>
<script type='text/javascript'>$(document).ready(function(){$(&quot;#show-
button&quot;).click(function(){$(&quot;#show-
widget&quot;).slideToggle()})});</script>
<div id='show-button'>TOMBOL SHOW/HIDE</div>
<div id='show-widget'> WIDGET YANG AKAN DISEMBUNYIKAN</div>
TOGGLE
<style type='text/css'>
#show-button{
padding:5px 15px;
background:#2ecc71;
color:#fff;
border:none;
cursor:pointer;
display:inline-block
}
#show-widget{
display:none;
text-align:center;
background:#2ecc71;
color:#fff;
padding:50px 0
}
</style>
<script type='text/javascript' src='jquery-1.10.2.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$("#show-button").click(function(){
$("#show-widget").toggle();
});
});
</script>
<button id='show-button'>TOMBOL SHOW/HIDE</button>
<div id='show-widget'>WIDGET YANG AKAN DISEMBUNYIKAN</div>

More Related Content

What's hot

Native Application Development With Qt by Rahul Nimbahlkar
Native Application Development With Qt by Rahul NimbahlkarNative Application Development With Qt by Rahul Nimbahlkar
Native Application Development With Qt by Rahul NimbahlkarAshley Walker
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1Sebastian Pożoga
 
Pengenalan AngularJS
Pengenalan AngularJSPengenalan AngularJS
Pengenalan AngularJSEdi Santoso
 
BDD revolution - or how we came back from hell
BDD revolution - or how we came back from hellBDD revolution - or how we came back from hell
BDD revolution - or how we came back from hellMateusz Zalewski
 
006 實作小玩具功能:chrome desktop notification
006 實作小玩具功能:chrome desktop notification006 實作小玩具功能:chrome desktop notification
006 實作小玩具功能:chrome desktop notificationBruce Li
 
การเชื่อมโยงหลายมิติและ URL
การเชื่อมโยงหลายมิติและ URLการเชื่อมโยงหลายมิติและ URL
การเชื่อมโยงหลายมิติและ URLPomPam Comsci
 
Általános Szerződési Feltételek
Általános Szerződési FeltételekÁltalános Szerződési Feltételek
Általános Szerződési FeltételekMediaMetrix
 
Javascript
JavascriptJavascript
Javascripttimsplin
 
GSS FED 別亂來交給我們來 Bear
GSS FED 別亂來交給我們來 Bear GSS FED 別亂來交給我們來 Bear
GSS FED 別亂來交給我們來 Bear DesBear Li
 
Steps to create image carousel by using angularjs
Steps to create image carousel by using angularjsSteps to create image carousel by using angularjs
Steps to create image carousel by using angularjsManikandan Keerthivasan
 
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterWho Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterciconf
 
Traavle finalpresentation
Traavle finalpresentationTraavle finalpresentation
Traavle finalpresentationmlottko
 

What's hot (20)

Native Application Development With Qt by Rahul Nimbahlkar
Native Application Development With Qt by Rahul NimbahlkarNative Application Development With Qt by Rahul Nimbahlkar
Native Application Development With Qt by Rahul Nimbahlkar
 
Kasdorf, EPUB 3: Not Your Father’s EPUB
Kasdorf, EPUB 3: Not Your Father’s EPUBKasdorf, EPUB 3: Not Your Father’s EPUB
Kasdorf, EPUB 3: Not Your Father’s EPUB
 
Redes sociales ESP
Redes sociales ESPRedes sociales ESP
Redes sociales ESP
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1
 
Pengenalan AngularJS
Pengenalan AngularJSPengenalan AngularJS
Pengenalan AngularJS
 
BDD revolution - or how we came back from hell
BDD revolution - or how we came back from hellBDD revolution - or how we came back from hell
BDD revolution - or how we came back from hell
 
006 實作小玩具功能:chrome desktop notification
006 實作小玩具功能:chrome desktop notification006 實作小玩具功能:chrome desktop notification
006 實作小玩具功能:chrome desktop notification
 
Imageslider
ImagesliderImageslider
Imageslider
 
J queryui
J queryuiJ queryui
J queryui
 
การเชื่อมโยงหลายมิติและ URL
การเชื่อมโยงหลายมิติและ URLการเชื่อมโยงหลายมิติและ URL
การเชื่อมโยงหลายมิติและ URL
 
Erik mogensen stowe
Erik mogensen stoweErik mogensen stowe
Erik mogensen stowe
 
Általános Szerződési Feltételek
Általános Szerződési FeltételekÁltalános Szerződési Feltételek
Általános Szerződési Feltételek
 
Jquery
JqueryJquery
Jquery
 
Javascript
JavascriptJavascript
Javascript
 
GSS FED 別亂來交給我們來 Bear
GSS FED 別亂來交給我們來 Bear GSS FED 別亂來交給我們來 Bear
GSS FED 別亂來交給我們來 Bear
 
Ros eyes ros-robots
Ros eyes ros-robotsRos eyes ros-robots
Ros eyes ros-robots
 
Steps to create image carousel by using angularjs
Steps to create image carousel by using angularjsSteps to create image carousel by using angularjs
Steps to create image carousel by using angularjs
 
Coisas para o blog
Coisas para o blogCoisas para o blog
Coisas para o blog
 
Who Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniterWho Needs Ruby When You've Got CodeIgniter
Who Needs Ruby When You've Got CodeIgniter
 
Traavle finalpresentation
Traavle finalpresentationTraavle finalpresentation
Traavle finalpresentation
 

Similar to Toggle dan slide toggle

Jquery plugin development
Jquery plugin developmentJquery plugin development
Jquery plugin developmentMd. Ziaul Haq
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuerypsophy
 
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...dezyneecole
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoRob Bontekoe
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the WorldJonathan Snook
 
Blog skins396734
Blog skins396734Blog skins396734
Blog skins396734pantangmrny
 
HTML5 and Mobile
HTML5 and MobileHTML5 and Mobile
HTML5 and Mobiledoodoofish
 
Building high-fidelity interactive prototypes with jQuery
Building high-fidelity interactive prototypes with jQueryBuilding high-fidelity interactive prototypes with jQuery
Building high-fidelity interactive prototypes with jQueryDavid Park
 
When solid met angular components
When solid met angular componentsWhen solid met angular components
When solid met angular componentsShiri Haim
 
New rich text document
New rich text documentNew rich text document
New rich text documentFaranAWK
 

Similar to Toggle dan slide toggle (20)

Jquery plugin development
Jquery plugin developmentJquery plugin development
Jquery plugin development
 
CSS3 and jQuery
CSS3 and jQueryCSS3 and jQuery
CSS3 and jQuery
 
webstudy jquery
webstudy jquerywebstudy jquery
webstudy jquery
 
Mobile Web Design Code
Mobile Web Design CodeMobile Web Design Code
Mobile Web Design Code
 
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
 
Vue.js for beginners
Vue.js for beginnersVue.js for beginners
Vue.js for beginners
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
 
J querypractice
J querypracticeJ querypractice
J querypractice
 
CSS3 vs jQuery
CSS3 vs jQueryCSS3 vs jQuery
CSS3 vs jQuery
 
Convidar para page !!
Convidar para page !!Convidar para page !!
Convidar para page !!
 
Membuat slide show pada posting
Membuat slide show pada postingMembuat slide show pada posting
Membuat slide show pada posting
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the World
 
Blog skins396734
Blog skins396734Blog skins396734
Blog skins396734
 
HTML5 and Mobile
HTML5 and MobileHTML5 and Mobile
HTML5 and Mobile
 
Borrador del blog
Borrador del blogBorrador del blog
Borrador del blog
 
Xxx
XxxXxx
Xxx
 
Javascript
JavascriptJavascript
Javascript
 
Building high-fidelity interactive prototypes with jQuery
Building high-fidelity interactive prototypes with jQueryBuilding high-fidelity interactive prototypes with jQuery
Building high-fidelity interactive prototypes with jQuery
 
When solid met angular components
When solid met angular componentsWhen solid met angular components
When solid met angular components
 
New rich text document
New rich text documentNew rich text document
New rich text document
 

More from Samsury Blog

Simple flat ui css accordion
Simple flat ui css accordionSimple flat ui css accordion
Simple flat ui css accordionSamsury Blog
 
Simple flat ui css accordion
Simple flat ui css accordionSimple flat ui css accordion
Simple flat ui css accordionSamsury Blog
 
Push button social profile flat ui color
Push button social profile flat ui colorPush button social profile flat ui color
Push button social profile flat ui colorSamsury Blog
 
Tab accordion menu ui awesome
Tab accordion menu ui awesomeTab accordion menu ui awesome
Tab accordion menu ui awesomeSamsury Blog
 
Simple flat ui subscribe email
Simple flat ui subscribe emailSimple flat ui subscribe email
Simple flat ui subscribe emailSamsury Blog
 
Simple menu ui efek flip css3
Simple menu ui efek flip css3Simple menu ui efek flip css3
Simple menu ui efek flip css3Samsury Blog
 
Simple tooltip dropdown menu css3
Simple tooltip dropdown menu css3Simple tooltip dropdown menu css3
Simple tooltip dropdown menu css3Samsury Blog
 
Share button ui slide toggle
Share button ui slide toggleShare button ui slide toggle
Share button ui slide toggleSamsury Blog
 
Random post efek jquery ui
Random post efek jquery uiRandom post efek jquery ui
Random post efek jquery uiSamsury Blog
 
Kombinasi menu metro ui
Kombinasi menu metro uiKombinasi menu metro ui
Kombinasi menu metro uiSamsury Blog
 

More from Samsury Blog (10)

Simple flat ui css accordion
Simple flat ui css accordionSimple flat ui css accordion
Simple flat ui css accordion
 
Simple flat ui css accordion
Simple flat ui css accordionSimple flat ui css accordion
Simple flat ui css accordion
 
Push button social profile flat ui color
Push button social profile flat ui colorPush button social profile flat ui color
Push button social profile flat ui color
 
Tab accordion menu ui awesome
Tab accordion menu ui awesomeTab accordion menu ui awesome
Tab accordion menu ui awesome
 
Simple flat ui subscribe email
Simple flat ui subscribe emailSimple flat ui subscribe email
Simple flat ui subscribe email
 
Simple menu ui efek flip css3
Simple menu ui efek flip css3Simple menu ui efek flip css3
Simple menu ui efek flip css3
 
Simple tooltip dropdown menu css3
Simple tooltip dropdown menu css3Simple tooltip dropdown menu css3
Simple tooltip dropdown menu css3
 
Share button ui slide toggle
Share button ui slide toggleShare button ui slide toggle
Share button ui slide toggle
 
Random post efek jquery ui
Random post efek jquery uiRandom post efek jquery ui
Random post efek jquery ui
 
Kombinasi menu metro ui
Kombinasi menu metro uiKombinasi menu metro ui
Kombinasi menu metro ui
 

Toggle dan slide toggle

  • 1. Slide Toggle #show- button{padding:0;background:#555;color:#3498db;cursor:pointer;display:inline- block} #show-widget{display:none;text-align:left;background:#555;color:#fff;padding:0} <script type='text/javascript' src='jquery-1.10.2.min.js'></script> <script type='text/javascript'>$(document).ready(function(){$(&quot;#show- button&quot;).click(function(){$(&quot;#show- widget&quot;).slideToggle()})});</script> <div id='show-button'>TOMBOL SHOW/HIDE</div> <div id='show-widget'> WIDGET YANG AKAN DISEMBUNYIKAN</div> TOGGLE <style type='text/css'> #show-button{ padding:5px 15px; background:#2ecc71; color:#fff; border:none; cursor:pointer; display:inline-block } #show-widget{ display:none; text-align:center; background:#2ecc71; color:#fff; padding:50px 0 } </style> <script type='text/javascript' src='jquery-1.10.2.min.js'></script> <script type='text/javascript'> $(document).ready(function(){ $("#show-button").click(function(){ $("#show-widget").toggle(); }); }); </script> <button id='show-button'>TOMBOL SHOW/HIDE</button> <div id='show-widget'>WIDGET YANG AKAN DISEMBUNYIKAN</div>