Jump to content
Sign in to follow this  

tabs gets blocked

Recommended Posts


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).

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";

<meta name="viewport" content="width=device-width, initial-scale=1">
    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;

It is not getting release.

Please suggest


Thanks and Regards

Rizwan Syed


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this