It’s important that your THEAD not be empty in table.As dataTable requires you to specify the number of columns of the expected data .
As per your data it should be
<table id="datatable">
<thead>
<tr>
<th>Subscriber ID</th>
<th>Install Location</th>
<th>Subscriber Name</th>
<th>some data</th>
</tr>
</thead>
</table>
Related Contents:
- TypeError: $(…).DataTable is not a function
- How to reload/refresh jQuery dataTable?
- JQuery Datatables search within input and select
- How do I add button on each row in datatable?
- How to use rowspan and colspan in tbody using datatable.js?
- jquery datatables hide column
- How can I select all checkboxes from all the pages in a jQuery DataTable
- jQuery plugin DataTables: How to highlight the current search text?
- DataTables row.add to specific index
- how to open only whatsapp application when click on a hyperlink/image/button [duplicate]
- How can I upload files asynchronously with jQuery?
- Use basic authentication with jQuery and Ajax
- Highlight a word with jQuery
- Prevent double submission of forms in jQuery
- jQuery trigger file input
- Only detect click event on pseudo-element
- Force browser to download image files on click
- How do I simulate a mouseover in pure JavaScript that activates the CSS “:hover”?
- How to sort an array of objects with jquery or javascript [duplicate]
- jQuery Set Cursor Position in Text Area
- How to take screenshot of a div with JavaScript?
- A CORS POST request works from plain JavaScript, but why not with jQuery?
- Chrome refuses to execute an AJAX script due to wrong MIME type
- Javascript decoding html entities [duplicate]
- How do I stop a window.setInterval in javascript?
- jquery – get text for element without children text
- $(document).ready(function() VS $(function(){ [duplicate]
- How to send data in request body with a GET when using jQuery $.ajax()
- What exactly can cause an “HIERARCHY_REQUEST_ERR: DOM Exception 3”-Error?
- How to create a JQuery Clock / Timer
- css transition doesn’t work if element start hidden
- Is setTimeout a good solution to do async functions with javascript?
- Hide div after a few seconds
- TypeError: p.easing[this.easing] is not a function
- JavaScript ternary operator example with functions
- HTML – attributes vs properties [duplicate]
- How can I remove the “No file chosen” tooltip from a file input in Chrome?
- How to convert HTML to JSON using PHP?
- JavaScript moving element in the DOM
- what’s the equivalent of jquery’s ‘trigger’ method without jquery?
- Dynamic jQuery Validate error messages with AddMethod based on the element
- Why is ‘event’ available globally in Chrome but not Firefox?
- Google Chrome Extensions: How to include jQuery in programmatically injected content script?
- jQuery min/max property from array of elements
- Attach a blob to an input of type file in a form
- jQuery Standards and Best Practice [closed]
- preload with percentage – javascript/jquery
- execute a function after redirecting – javascript
- Jquery post, response in new window
- How to show hidden divs on mouseover?