Error message is thrown: studTable.rows is not a function
Error message is thrown: studTable.rows is not a function
$(function () {
                                    j$('#StudentsTable').tsort();
                                    var studTable = j$('.iatable').DataTable({
                                        searching:false,
                                        "sPaginationType": "full_numbers",
                                        "iDisplayLength": 50,
                                        "asStripeClasses": ['table_row1'],
                                        "bPaginate": true,
                                        "bLengthChange": true,
                                        "bFilter": true,
                                        "bInfo": true,
                                        "bAutoWidth": false,
                                        "bProcessing": true
                                    });
                                    j$('#addToIndAreaBtn').click( function () {
                                        alert( studTable.rows('.selected').data().length +' row(s) selected' );
                                    } );
                                });
Error messages shown:  studTable.rows is not a function
Description of problem:  I can't count selected rows in my datatable. I need to run rows() successfully.
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
            
Answers
It looks fine. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. 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.
Cheers,
Colin