Export to pdf/excel is not working when I have Multiple tabs in page and each tab contains datatable

Export to pdf/excel is not working when I have Multiple tabs in page and each tab contains datatable

prasanthkkprasanthkk Posts: 1Questions: 1Answers: 0

I have one html page in this page I added multiple tabs and each tab having one datable.
In this case export is working only for first and last tabs, for all other tabs(middle tabs) export is not working.
If I have only two tabs then export is working in both tabs.

Tab HTML Code

<div id="tabs">
  <ul>
    <li><a href="#daytab">Day</a></li>
    <li><a href="#monthtab">Month</a></li>
    <li><a href="#searchtab">Custom Search</a></li>
  </ul>

    <div class="container" id="daytab">
        <section>
            <table id="day" class="display" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Age</th>
                                        </tr>
                </thead>
            </table>
        </section>
    </div>

  <div class="container" id="monthtab">
        <section>
            <table id="month" class="display" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Age</th>
                                        </tr>
                </thead>
            </table>
        </section>
    </div>

  <div class="container" id="searchtab">
        <section>
            <table id="search" class="display" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Age</th>
                                        </tr>
                </thead>
            </table>
        </section>
    </div>
</div>

I am loading table data on document ready.

This discussion has been closed.