how this function work can any one explain flow $.fn.dataTable.ext.search.push below function nowork

how this function work can any one explain flow $.fn.dataTable.ext.search.push below function nowork

dhawalbhattdhawalbhatt Posts: 3Questions: 2Answers: 0
edited January 2018 in Free community support
# $.fn.dataTable.ext.search.push(
#     function( settings, data, dataIndex ) {
#   alert("hello");
#     }
# );
 
$(document).ready(function() {
    var table = $('#example').DataTable();
     
    // Event listener to the two range filtering inputs to redraw on input
    $('#min, #max').keyup( function() {
        table.draw();
    } );
} );

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • dhawalbhattdhawalbhatt Posts: 3Questions: 2Answers: 0
    edited January 2018

    this is my table

    <div id="today_Enquiry" class="tab-pane fade in active " >
                        <div id="today_Enquiry"    >
                        <table id="table_id" class="table table-striped table-bordered" cellspacing="0"width="100%">
                            <thead>
                                <tr>
                                    <th style="width:5%">SR#</th>                      
                                    <th style="width:10%" >Executive Name</th>
                                    <th style="width:7%" >Date</th>
                                    <th style="width:25%" >Contact Details</th>                       
                                    <th style="width:25%"  >Remarks</th>
                                    <th style="width:10%"  >Project Details</th>                        
                                    <th style="width:10%" >Other Details</th>
                                    <th style="width:5%">Id</th>                     
                                </tr>
                            </thead>
                            <tbody>                                    
                                <?php $i = 0;
                                foreach ($today_enquiry_list as $today_enquiry_list) { ?>
                                    <tr>
                                        <?php $i += 1;
                                        ?>
                                        <td style="text-align: left;"><?php echo $i; ?></td>
                    
                                      ........................................................
                            <!--Team Leader-->
                            
                            </tbody>
    
                            <tfoot>
                            <tr>
                                <th style="width:5%">SR#</th>                      
                                <th style="width:10%" >Executive Name</th>
                                <th style="width:7%" >Date</th>
                                <th style="width:20%" >Contact Details</th>                       
                                <th style="width:28%"  >Remarks</th>
                                <th style="width:10%"  >Project Details</th>                        
                                <th style="width:10%" >Other Details</th>
                                <th style="width:5%">Id</th>                     
                            </tr>
                            </tfoot>
                        </table>                   
                        </div>
                    </div>
    

    Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

This discussion has been closed.