Bootstrap css issue

I am using bootstrap css . I have two tabs. MyAccountTabContent & MyAccountAssociationTabContent

when I click on second tab i.e MyAccountAssociationTabContent … content does not become visible.

<div role="tabpanel" class="tab-pane active" id="MyAccountTabContent">
		<div id="createMyAccount" class="displayNone" style="display: block;">

<div role="tabpanel" class="tab-pane" id="MyAccountAssociationTabContent">
<div id="createMyAccountAssociaiton" class="displayNone">
some other thing

where to change code to make content visible as soon as I click second tab

Make sure you have both jQuery and all the plugins loaded. Check again the documentation for all attributes required to trigger tabs without code. Usually it is something trivial like a typo or a missing attribute or you copy the code but don’t change the IDs and classes everywhere.

If you don’t manage to get it working, then make a CodePen with your case and link it here so that we can have a look.


That doesn’t look like the right structure for bootstrap tabs?

Here’s a working demo of tabs (copied from here).

<!DOCTYPE html>
<html lang="en">
<title>Example of Bootstrap 3</title>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<div class="container">
  <div id="content">
    <ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
      <li class="active"><a href="#red" data-toggle="tab">Red</a></li>
      <li><a href="#orange" data-toggle="tab">Orange</a></li>
      <li><a href="#yellow" data-toggle="tab">Yellow</a></li>
      <li><a href="#green" data-toggle="tab">Green</a></li>
      <li><a href="#blue" data-toggle="tab">Blue</a></li>
    <div id="my-tab-content" class="tab-content">
      <div class="tab-pane active" id="red">
        <p>red red red red red red</p>
      <div class="tab-pane" id="orange">
        <p>orange orange orange orange orange</p>
      <div class="tab-pane" id="yellow">
        <p>yellow yellow yellow yellow yellow</p>
      <div class="tab-pane" id="green">
        <p>green green green green green</p>
      <div class="tab-pane" id="blue">
        <p>blue blue blue blue blue</p>
<!-- container -->

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.