Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function()
- {
- if (window.location.hash)
- {
- show(window.location.hash);
- }
- else
- {
- show('#overview');
- }
- });
- function show(id)
- {
- $('#overview_div, #coursecontent_div, #profiles_div, #requirements_div, #fees_div').hide();
- $('#tabs li a').removeClass("selected");
- $(id + '_div').show();
- $(id + '_link').addClass("selected");
- }
- DOM:
- TAB 1 .tab .tab-first
- TAB 2 .tab
- TAB 3 .tab
- TAB 4 .tab
- TAB 5 .tab
- function hiderighthanddiv(evt)
- {
- //whatever you want
- }
- function showrighthanddiv(evt)
- {
- //whatever you want
- }
- $('.tab').not('.tab-first').bind('click',hiderighthanddiv);
- $('.tab-first').bind('click',showrighthanddiv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement