datatables-angular-directive icon indicating copy to clipboard operation
datatables-angular-directive copied to clipboard

TypeError: undefined is not a function

Open junelmujar opened this issue 11 years ago • 0 comments

Hi,

I'm encountering the following error: TypeError: undefined is not a function

on the following line:

$elem.find('thead th').each(function() {

My html is as follows:

            <table datatable sAjaxSource="data.json" sAjaxDataProp="result" class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th data-mdata="id" data-sclass="highlight-red">ID</th>
                        <th data-mdata="name">Name</th>
                        <th data-mdata="about.text" data-bvisible="false">About me</th>
                        <th data-mdata="phone">Phone</th>
                        <th data-mdata="email">Email</th>
                        <th data-mdata="age">Age</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>

Verbatim from your example.html.

The only difference is that it's part of a partial view. What do you think I did wrong?

Thank you in advance.

Regards,

Junel

junelmujar avatar Jun 26 '14 03:06 junelmujar