Jump to content
Sign in to follow this  
rizwansyed

tabs gets blocked

Recommended Posts

Hi

I have nested tabs being used.

When ever i click on one tab , it is being blocked and other one also gets blocked when i click it.(as shown in image attached).

<script>
function openCitya(evt, cityName) {
    var i, tabcontenta, tablinksa;
    tabcontenta = document.getElementsByClassName("tabcontenta");
    for (i = 0; i < tabcontenta.length; i++) {
        tabcontenta[i].style.display = "none";
    }
    tablinksa = document.getElementsByClassName("tablinksa");
    for (i = 0; i < tablinksa.length; i++) {
        tablinksa[i].className = tablinksa[i].className.replace(" active", "");
    }
    document.getElementById(cityName).style.display = "block";
    evt.currentTarget.className += " active";
}
</script>



<meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
    body {font-family: Arial;}

    /* Style the tab */
    .taba {
        overflow: hidden;
        border: 0px solid #fff;
        background-color: #f1f1f1;;
    }

    /* Style the buttons inside the tab */
    .taba button {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        font-size: 17px;
    }

    /* Change background color of buttons on hover */
    .taba button:hover {
        background-color: #ddd;
    }

    /* Create an active/current tablink class */
    .taba button.active {
        background-color: #ccc;
    }

    /* Style the tab content */
    .tabcontenta {
        display: none;
        padding: 6px 12px;
        border: 0px solid #fff;
        border-top: none;
    }
    </style>
    <body>

It is not getting release.

Please suggest

 

Thanks and Regards

Rizwan Syed

image.PNG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...