+ 2
Can someone tell me how to create tabs in JavaScript??
3 Answers
+ 6
1 use JQuery
2 pure js example :
create 4 tabs
create four divs
on loading show 1 div hide 3
when button 1 pressed show div 1 hide others
when button 2 pressed show div 2 hide others
when button 3 pressed show div 3 hide others
when button 4 pressed show div 4 hide others
there are ways to simplify this, but that is the basic !
you might also want to play with colors and borders to give a realistic effect !
+ 1
Actually i tried it and failed .could someone give me a code